A Horn African languages translation app
# Horn AI Translator - Android App
Horn AI Translator is a premium, production-ready native Android application built using **Kotlin**, **Jetpack Compose**, **Room Database**, and **Material Design 3**.
Inspired by the luxury aesthetics of modern intent-driven apps, Horn AI Translator is designed specifically for languages spoken in the **Horn of Africa**: Somali, Maay Somali, Amharic, Oromo, Tigrinya, Afar, Swahili, Arabic, and English.
---
## 🚀 Key Architectural Highlights
- **Framework & UI:** 100% Jetpack Compose using contemporary glassmorphic styled components, smooth motion states, and clean typography.
- **Custom Translation Layer:** Standard word-for-word engines can break on regional expressions. Horn AI Translator embeds a neural prompt layer instructions inside Google Gemini API requests to improve Somali, Maay, Oromo, Amharic, Tigrinya, and Afar translations by preserving authentic idioms and local context.
- **Local SQLite Caching:** Uses **Room Database** to save translations, local chat threads, and favorite bookmark states for 100% offline availability.
- **Speech APIs:** Integrates Android's native `SpeechRecognizer` (Speech-to-Text) and `TextToSpeech` (Text-to-Speech synthesis) to perform offline vocal translation without expensive remote cloud overhead.
- **Secure Credentials:** Integrates the Secrets Gradle Plugin to inject `GEMINI_API_KEY` directly from the secure AI Studio Secrets panel during compile time.
---
## 📁 Native Folder Structure
The app is constructed with a clean **MVVM (Model-View-ViewModel)** architecture:
```text
/app/src/main/java/com/example/
│
├── MainActivity.kt # App root entry point, acts as the screen-router.
│
├── data/
│ ├── local/
│ │ ├── AppDao.kt # Database operations.
│ │ └── AppDatabase.kt # Room Database setup.
│ │
│ ├── model/
│ │ └── Entities.kt # Users, Subscriptions, History and Chat Entities.
│ │
│ ├── remote/
│ │ └── Gemi …