Skip to content

lthphuw/translator-as-service

Repository files navigation

🧠 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

Source Target
🇺🇸 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

# Install dependencies
pip install -r requirements.txt

# Run the application
python manage.py

About

Translator as a Service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published