A fast, AI-powered multilingual translation web application built with Django and Python. Supports 25+ languages including comprehensive African language support with Chichewa, Swahili, Yoruba, and more
# π AI Translator - Multilingual Translation Web Application
A fast, AI-powered multilingual translation web application built with Django and Python. Supports 25+ languages including comprehensive African language support with Chichewa, Swahili, Yoruba, and more.
## π Features
- **π 25+ Languages** - Comprehensive global language support
- **πΏπ¦ 15 African Languages** - Specialized support for African languages including Chichewa, Swahili, Yoruba, Igbo, Hausa, and more
- **π€ AI-Powered Translation** - Uses state-of-the-art MarianMT models from HuggingFace
- **β‘ Fast Performance** - Optimized with caching and lazy loading
- **π¨ Modern UI** - Clean black and white responsive design
- **π± Real-time Translation** - Instant results with loading indicators and error handling
- **π§ RESTful API** - Fully functional API for integration
## π οΈ Technology Stack
### Backend
- **Framework**: Django 4.2.7 + Django REST Framework
- **AI Models**: HuggingFace Transformers, PyTorch
- **Caching**: Django Cache Framework
- **Authentication**: Django CSRF Protection
### Frontend
- **UI Framework**: Bootstrap 5.3.0
- **Icons**: Font Awesome 6.0
- **JavaScript**: Vanilla ES6+
- **Styling**: Custom CSS with glassmorphism effects
### AI/ML
- **Translation Models**: Helsinki-NLP MarianMT models
- **Inference**: PyTorch with GPU support (if available)
- **Tokenization**: SentencePiece, Sacremoses
## π Supported Languages
### European Languages
- English (`en`), Spanish (`es`), French (`fr`), German (`de`)
- Italian (`it`), Portuguese (`pt`), Russian (`ru`)
### Asian Languages
- Chinese (`zh`), Japanese (`ja`), Korean (`ko`), Arabic (`ar`)
### African Languages
- **Swahili** (`sw`) - East Africa
- **Yoruba** (`yo`) - West Africa
- **Igbo** (`ig`) - Nigeria
- **Hausa** (`ha`) - West Africa
- **Amharic** (`am`) - Ethiopia
- **Somali** (`so`) - Horn of Africa
- **Zulu** (`zu`) - South Africa
- **Xhosa** (`xh`) - South Africa
- **Kinyarwanda** (`rw`) - Rwanda
- **Chichewa** (`ny`) β¦