Skip to content

Sarb-jot/Language-Translator-using-googletrans-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Language Translator using Python (Tkinter + Google Translate API)

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

⚠️ Use version 3.1.0a0 for better stability with the googletrans library.

πŸš€ 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages