A professional, interactive, and colorful command-line translator built with Python. This project provides a smooth CLI experience with animated typing effects, interactive menus, and support for dozens of languages.
- 🔤 Translate text between 100+ languages
- 🎨 Colorful and attractive terminal output (Colorama)
- ⌨️ Typewriter-style text animation
- 📜 Interactive and user-friendly menus
- ⚡ Modern async architecture using AsyncIO
- 🧩 Clean, modular, and extensible codebase
- Python 3.8+
- pip
pip install colorama googletrans==4.0.0-rc1
⚠️ Note:googletrans==4.0.0-rc1is recommended for better stability.
- Clone the repository:
git clone https://github.com/AliSaadatDev/python-translator-cli.git
cd python-translator-cli- Install dependencies:
pip install -r requirements.txt- Run the application:
python main.py- After running, a list of supported languages will be displayed
- From the main menu, choose Start Translation
- Enter the text you want to translate
- Enter the target language code (e.g.
en,fa,de) - The translated text will be displayed instantly in the terminal
To return to the previous menu, type b.
| Language | Code |
|---|---|
| English | en |
| Persian | fa |
| German | de |
| French | fr |
| Japanese | ja |
The full list of supported languages is available in
languages.py.
.
├── main.py # Main application logic and menus
├── utils.py # Helper utilities (typewriter effects, helpers)
├── languages.py # Language codes and names
├── README.md # Project documentation
- Automatic source language detection
- Save translations to file
- Support alternative APIs (DeepL, LibreTranslate)
- File translation support
CREATED_BY
📬 Telegram: t.me/theeeraven
This project is licensed under the MIT License. Free to use, modify, and distribute.
If you find this project useful, please consider giving it a ⭐ on GitHub — it really helps ❤️
Built with 🐍 Python and ❤️