A simple CLI Language Translator application in Python.
- Clone the repository:
git clone https://github.com/gptgit/language_translator.git
- Change into the directory:
cd language_translator
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py
Enter the language to translate (e.g. en, es, fr) and the text to translate. The application will translate the text and print the result.
The application supports translations to and from the following languages:
- English (en)
- Spanish (es)
- French (fr)
- German (de)
- Italian (it)
- Portuguese (pt)
- Chinese (zh)
- Japanese (ja)
- Korean (ko)
The application will handle errors and print a professional error message if an error occurs during translation.
The application includes a set of tests to ensure it works correctly. You can run the tests using the following command: python -m unittest tests/test_translator.py
This application uses the googletrans
library for translation.
This application is licensed under the MIT License. See LICENSE
for more information.
You can find the source code for this application on GitHub: https://github.com/gptgit/language_translator