Being able to connect with people from different countries is one of the most powerful features of the internet. This rapid globalization necessitates the need for applications that help translate text to various languages to facilitate communication.
This terminal application utilizes Google Translator's API to convert text from english to one of 10 languages. The original text is displayed with the translated text below. Users have the option to translate as often as they want.
If you have Docker installed, you can run this application on your own machine with just 2 steps!
Pull the image from Docker Hub
docker pull smhussain5/translator-python
Then run the image as an interactive Docker container
docker run --rm -it smhussain5/translator-python
- Googletrans
- PyCharm
- Python
This was a straightforward application, but I originally had options for languages that utilized non-Latin alphabet (eg, Korean, Russian). Although this worked in the PyCharm terminal, it did not translate (😉) to the Python shell.
I enjoyed using this library and did not utilize the full array of features like auto-detection. It would be interesting to explore using text-to-speech and maybe developing a full-stack Google Translate clone!