A modern, responsive web application for text translation built with Flask and DeepL.
- Real-time Translation: Translate text instantly between multiple languages.
- Modern UI: Clean, responsive interface with dark mode support.
- Language Detection: Automatically detects the source language.
- Pronunciation: Text-to-Speech (TTS) functionality to hear the translation.
- Error Handling: Graceful error messages and loading states.
- Backend: Python 3.10+, Flask
- Translation:
deep-translator(Google Translate) - Frontend: HTML5, CSS3, JavaScript (Vanilla)
- Icons: Font Awesome
-
Clone the repository (or download the source code).
-
Create a virtual environment (recommended):
python -m venv venv venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Access the app: Open your browser and navigate to
http://[IP_ADDRESS].
AI-translator/
├── app.py # Flask application entry point
├── requirements.txt # Project dependencies
├── templates/
│ └── index.html # Main HTML template
└── static/
├── css/
│ └── style.css # Stylesheets
└── js/
└── script.js # Frontend logic
MIT