A Python-based language translation tool leveraging the Google Translate API. Users can input text and specify a target language code to receive accurate translations instantly. This project is ideal for quick language conversions and understanding multilingual text. It is simple, efficient, and designed for ease of use.
- Text Translation: Translate text to any supported language using the Google Translate API.
- User Input: The program asks the user for text and the target language code.
- Real-time Translation: Provides fast and accurate translations in real-time.
googletrans==4.0.0-rc1: A Python library that provides an interface to the Google Translate API.Python: The programming language used to implement this project.
-
Clone the repository:
git clone https://github.com/sanketjadhav09/Language-Translator.git cd translator-project -
Install the required dependencies:
!pip install googletrans==4.0.0-rc1 -
Run the program:
Language_Translator.ipynb
- After running
Language_Translator.ipynb, the program will prompt you to enter the text you wish to translate. - You will then be asked to provide the target language code (e.g., 'mr' for Marathi, 'hi' for hindi).
- The program will display the original text, the translated text, and the language it was translated to.
Language_Translator.ipynb: Main Python script handling user input, translation request, and output display.README.md: This file, containing instructions and project details.Output.png: A screenshot of the translator in action.
- User Input: The user is prompted to input text and specify the target language code.
- API Call: The program sends the input to the Google Translate API, requesting a translation.
- Output: The program displays the translated text and language information.
This project is an open-source and available under the MIT LICENSE.
- Special thanks to my mentors for their guidance and support throughout the development of this project.
- This project was completed in a Jupyter Notebook Environment, which provided an interactive and efficient platform for implementation.
- Contributions are welcome! If you have ideas for improvements or additional features, feel free to fork the repository, make changes, and submit a pull request. Your contributions are greatly appreciated!
