# π²π¦ Darija Translator - English to Moroccan Arabic Translation Service
**π₯ VidΓ©o de dΓ©monstration :**
drive.google.com
A complete AI-powered translation system for converting English text to Moroccan Arabic (Darija) dialect, featuring a secure REST API, web client, and Chrome extension.
## π Table of Contents
- Features
- Architecture
- Technologies
- Prerequisites
- Installation
- Configuration
- Usage
- API Documentation
- Security
- Clients
- Screenshots
- Contributing
- License
- Contact
## β¨ Features
### REST API
- β
RESTful web service built with JAX-RS (Jersey)
- β
AI-powered translation using Google Gemini API
- β
Jakarta Authentication with Basic Auth
- β
Role-based access control (USER, ADMIN)
- β
Password hashing with SHA-256 and salt
- β
JSON request/response format
- β
CORS support for cross-origin requests
### PHP Web Client
- β
Modern, responsive user interface
- β
Real-time character counter
- β
Translation history with local storage
- β
Copy to clipboard functionality
- β
Service health monitoring
- β
Error handling with user-friendly messages
### Chrome Extension
- β
Manifest V3 compliance
- β
Side Panel API integration
- β
Context menu for selected text translation
- β
Persistent translation history
- β
One-click translation from toolbar
- β
Works on any webpage
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLIENTS β
ββββββββββββββββ¬βββββββββββββββββββ¬βββββββββββββββββββββββββββ€
β Web Client β Chrome Extension β Postman/cURL β
β (PHP) β (Manifest V3) β (API Testing) β
ββββββββ¬ββββββββ΄βββββββββ¬ββββββββββ΄βββββββββββ¬ββββββββββββββββ
β β β
β HTTP Requests with Basic Auth β
β β β
βββββββββββββββββββΌββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββ
β β¦