AI-Powered-Multi-Language-Translator is a web-based multilingual translation application built using Streamlit and Google Gemini AI. It allows users to translate text between multiple languages with clean, strict outputs and accurate name transliteration.
- 🌐 Translate text between multiple languages
- ✍️ Strict translation output (only target language, no explanations)
- 👤 Correct name transliteration (English → Hindi / Telugu / others)
- ⚡ Powered by Google Gemini Flash model
- 🛡️ Quota-safe using caching
- ❌ No unwanted English / Roman text in output
- 🎨 Clean and simple Streamlit UI
| Layer | Technology |
|---|---|
| Frontend | Streamlit |
| AI Model | Google Gemini (gemini-flash-latest) |
| Backend | Python |
| SDK | google-genai |
| Styling | Streamlit Theme (config.toml) |
AI-Powered-Multi-Language-Translator/
│
├── app.py
├── requirements.txt
├── README.md
└── .streamlit/
└── config.toml
- Python 3.9 or higher
- Google Gemini API Key 👉 https://aistudio.google.com
git clone https://github.com/srinidhi-2006-bit/AI-Powered-Multi-Language-Translator.git
cd AI-Powered-Multi-Language-Translatorpython -m venv venvActivate:
Windows
venv\Scripts\activateMac / Linux
source venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root:
GEMINI_API_KEY=your_api_key_here.streamlit/config.toml
[theme]
primaryColor = "#4F46E5"
backgroundColor = "#EEF2FF"
secondaryBackgroundColor = "#EEF2FF"
textColor = "#1F2937"
font = "sans serif"streamlit run app.pyOpen in browser:
http://localhost:8501
srinidhi
श्रीनिधि
శ్రీనిధి
✔ Only target language ✔ No explanations ✔ No Roman letters
- Uses Gemini Flash model for free-tier compatibility
- Enforces strict prompt rules for clean output
- Uses Streamlit caching to reduce API usage
- Gracefully handles 429 quota errors
Google Gemini free tier has limited daily requests.
Tips:
- Avoid frequent page refreshes
- Cached translations do not consume extra quota
- If limit is reached, wait and retry later
- Multilingual text translation
- Indian language name transliteration
- Academic & hackathon projects
- AI project for resume / portfolio
- 🔄 Auto language detection
- 🎤 Voice translation
- 📋 Copy translated text
- 🌙 Dark / Light mode toggle
- 🌐 Cloud deployment