The Language Translator web application is a Python-based tool that allows you to translate sentences from one language to another. It uses the Google Translate API for translation and provides a user-friendly web interface.
Before running the application, ensure you have the following prerequisites installed on your system:
- Python 3
- Virtual environment (recommended)
The Language Translator supports translation between a wide range of languages. Here are the list of supported languages:
- English
- Hindi
- French
- German
- Italian
- Zulu
To set up and run the Language Translator web application, follow these steps:
-
Clone this repository to your local machine or download the ZIP file:
git clone https://github.com/its-sushant/LanguageTranslator.git
-
Navigate to the
LanguageTranslator
directory:cd LanguageTranslator
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the application:
python3 app.py
-
Open a web browser and go to http://127.0.0.1:5000/.
- Enter the sentence you want to translate in the "Enter a Sentence" input field.
- Select the source language from the "Select Source Language" dropdown.
- Select the target language from the "Select Target Language" dropdown.
- Click the "Translate" button.
- View the translation result in the "Translation Result" section.
- User-friendly web interface.
- Supports translation between multiple languages.
- Utilizes the Google Translate API for accurate translations.