A web-based language translation application developed as part of my CodeAlpha Artificial Intelligence Internship. The application allows users to enter text, select the source and target languages, and receive the translated result through a simple interface.
Open the Language Translation Tool
- Translate text between multiple languages
- Automatically detect the source language
- Select the source and target languages
- Display the translated result clearly
- Warn the user when the text box is empty
- Prevent translation when the same language is selected twice
- Handle translation and connection errors
- Python
- Streamlit
- deep-translator (
GoogleTranslator)
The user enters text and selects the source and target languages. When the Translate button is clicked, the application processes the text using the GoogleTranslator class provided by the deep-translator package.
The translated text is then displayed on the screen. The source language can also be set to Auto Detect when the original language is unknown.
.
├── app.py
├── requirements.txt
├── translation-demo.png
├── README.md
└── .gitignore
Make sure Python is installed on your computer.
Download the repository as a ZIP file from GitHub and extract it on your computer.
Open a terminal or command prompt inside the extracted project folder.
pip install -r requirements.txtstreamlit run app.pyThe application will open in your web browser.
The main translation functionality has been completed, tested, and deployed successfully.
Shayan Akbar
Developed as part of the CodeAlpha Artificial Intelligence Internship.