This is a simple Language Translation Desktop App built with Python using the tkinter library for GUI and Google Translate API (googletrans) for performing real-time translations between different languages.
π Features π Translate text between multiple languages
π§ Auto-detect source language (optional input)
π― Set a target language or default to English
β Minimal and user-friendly GUI
π§½ "Clear" button to reset all input fields
π¬ Error handling for empty input
πΈ GUI Preview β¨ (Add a screenshot here if you wish, e.g., https://raw.githubusercontent.com/Sarb-jot/Language-Translator-using-googletrans-api/main/Srivatsan/Language-Translator-using-googletrans-api.zip)
π οΈ Technologies Used Python 3.x
tkinter β for GUI
googletrans β for translation functionality
π¦ Requirements Install the required Python libraries:
bash Copy Edit pip install googletrans==3.1.0a0
π How to Run Clone the repository or download the Python script.
Run the file using any Python IDE or terminal:
bash Copy Edit python https://raw.githubusercontent.com/Sarb-jot/Language-Translator-using-googletrans-api/main/Srivatsan/Language-Translator-using-googletrans-api.zip Enter the text, source language (optional), and target language (optional), then click Translate.
π§ͺ Example Inputs Text to translate: Bonjour tout le monde
Source language: fr (French)
Target language: en (English)
Output:
TRANSLATED TEXT: Hello everyone
π€ Language Codes Refer to this language code list for supported languages. Some examples:
Language Code English en Hindi hi French fr Spanish es German de
π‘ Future Enhancements Add drop-down menus for language selection
Include voice input/output
Add support for translation history
Package as an executable .exe using pyinstaller
π License This project is open-source and free to use under the MIT License.