Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

hassnioui/Darija-Translate

Domain:

natural language processing

Record type:

softwaretools
Creator:
has
Host:
# Moroccan Darija Translator > An AI-powered REST web service that translates English text into Moroccan Darija using Google Gemini 2.5 Flash. > Supervised by **Pr. El Habib Nfaoui** --- ## Features - Powered by **Google Gemini 2.5 Flash** AI - **Chrome Extension** with side panel and auto-fill on text selection - Basic Authentication security - Built with **Jakarta EE / JAX-RS** deployed on WildFly --- ## Architecture ``` Chrome Extension (content.js) ↓ HTTP POST + Basic Auth Java REST API — WildFly Server ↓ Prompt + API Key Google Gemini AI ↓ Darija Translation ``` --- ## Project Structure ``` ├── src/main/java/com/darija/ │ ├── ApplicationConfig.java # Activates JAX-RS at /rest │ ├── SecurityConfig.java # HTTP Basic Auth setup │ └── TranslatorResource.java # POST /rest/translate endpoint ├── chrome-extension/ │ ├── manifest.json │ ├── content.js # Detects text selection │ ├── sidepanel.html / .js / .css │ └── background.js ├── translate.php # CLI client └── pom.xml ``` --- ## Getting Started ### 1. Prerequisites - Java 21 - Maven - WildFly - Google Gemini API Key ### 2. Set Environment Variable ```bash export GOOGLE_API_KEY=your_key_here ``` ### 3. Create WildFly User ```bash ./bin/add-user.sh # Type: Application User # Username: your_username # Password: your_password # Role: user ``` ### 5. Load the Chrome Extension - Open Chrome → `chrome://extensions` - Enable Developer Mode - Click **Load unpacked** → select the `chrome-extension/` folder --- **Status Codes:** | Code | Meaning | |------|---------| | 200 | Translation successful | | 400 | Empty input | | 401 | Invalid credentials | | 403 | Missing "user" role | | 500 | Missing API key or Gemini error | ## Authors - **HASSNIOUI Amine** - **MANSOURI Salma** ## Academic Context Developed as part of the SOA Technology course – Cycle 5 IDWM ISGA Fès – 2025/2026

Visit

github.com

Languages

Arabic, Algerian SpokenArabic, Moroccan Spoken

Similar

youssefamnay/darija-translateWissal65/Darija-Translateanass-gb/Darija-translateOpen-Darija-Tamazight/translate-tmz-englishOpen-Darija-Tamazight/tamazight-english-translateMansa Translate

youssefamnay/darija-translate

# 🇲🇦 Darija Translate > A modern browser extension for translating English to Moroccan Darija (Moro

Wissal65/Darija-Translate

Context-aware bidirectional translation between English and Moroccan Darija powered by Google Gemini

anass-gb/Darija-translate

English to Darija Translator (LLM-Powered) Un service web RESTful sécurisé construit avec Spring Boo

Open-Darija-Tamazight/translate-tmz-english

Open-Darija-Tamazight/tamazight-english-translate

Mansa Translate

Mansa Translate, powered by our MansaLLM, delivers state-of-the-art, context-aware translations for over 20 African languages. Built for accuracy, cultural nuance, and scalability, Mansa outperforms conventional solutions—ensuring real-time, high-quality transla