🧠 Translator as Service

A lightweight API for translating between English, Vietnamese, and French using pretrained models.
Supports auto language detection and can be easily extended to other language pairs.

Translator as Service


🌍 Supported Language Pairs

SourceTarget
🇺🇸 EN🇻🇳 VI, 🇫🇷 FR
🇻🇳 VI🇺🇸 EN, 🇫🇷 FR
🇫🇷 FR🇺🇸 EN, 🇻🇳 VI

✅ Built-in language detection allows you to omit the src_lang field for most use cases.


🖼️ Demo

🇻🇳 Vietnamese → English

Translate vietnamese texts to english texts


🇺🇸 English → Vietnamese

Translate english texts to vietnamese


🇫🇷 French → Vietnamese

Translate french texts to vietnamese


🌐 Auto Detect Language

You can omit the src_lang field — the system will detect the language automatically:

Omit the src_lang


🔧 Easily Extensible

To add a new language pair, simply implement a new BaseTranslator subclass and register it in UniversalTranslator.TRANSLATOR_FACTORIES.


🚀 Running Locally

1# Install dependencies 2pip install -r requirements.txt 3 4# Run the application 5python manage.py