The Text Translator is a simple web application built using Streamlit and Google Translate API. It allows users to translate text from one language to another easily.
- Translation of text from one language to another.
- Selection of target language from a dropdown menu.
- Customizable Streamlit theme for a better user experience.
- Error handling for translation failures.
To run the Text Translator locally, follow these steps:
-
Clone this repository to your local machine.
git clone https://github.com/codewithdark-git/text-translator.git
-
Navigate to the project directory.
cd text-translator
-
Install the required dependencies.
pip install -r requirements.txt
-
Run the Streamlit app.
streamlit run app.py
-
Access the Text Translator in your web browser at
http://localhost:8501
.
- Enter the text you want to translate in the text area provided.
- Select the target language from the dropdown menu.
- Click the "Translate" button to initiate the translation.
- View the translated text displayed below.
- Streamlit
- Googletrans
This project is licensed under the MIT License - see the LICENSE file for details.