Testcontainers
Spin up real databases and services in Docker from inside your tests.
A free, open-source machine translation API you can host yourself.
No votes yet. Tried it? Be the first to say.
One vote per person. No account needed.
LibreTranslate is a self-hosted, offline-capable translation API powered by the open-source Argos Translate engine, so it doesn't rely on Google or Azure. Run it on your own server and translate text through a simple HTTP API, with no per-character fees and no data leaving your infrastructure.
Google Translate, DeepL or Azure Translator APIs
You need translation in an app or pipeline but can't send the text to a third party, or don't want per-character costs.
POST /translate with text, source and target languages, or source: "auto" for detection.
POST /detect identifies the language of a text with a confidence score.
Translate documents (such as .txt, .docx and .pdf) through /translate_file.
Uses open Argos Translate models that run on your own hardware; no calls to Google or Azure.
Optional API keys and per-client rate limits for shared instances.
A built-in translation page, plus CPU and CUDA container images.
docker run -ti --rm -p 5000:5000 libretranslate/libretranslate
# or
pip install libretranslate
libretranslate --load-only en,es,de,frThe first start downloads language models, so keep a volume for them in production to avoid downloading on every boot.
curl -X POST http://localhost:5000/translate \
-H 'Content-Type: application/json' \
-d '{"q": "Your order has shipped", "source": "en", "target": "de", "format": "text"}'
# {"translatedText": "Ihre Bestellung wurde versandt"}
curl -X POST http://localhost:5000/detect \
-H 'Content-Type: application/json' -d '{"q": "Bonjour tout le monde"}'q can also be an array to translate several strings in one request, which is handy for UI string files.
--api-keys and request limits before exposing an instance publicly.--load-only to limit languages.docker run -ti --rm -p 5000:5000 libretranslate/libretranslate
# or: pip install libretranslate && libretranslate --load-only en,es
curl -X POST localhost:5000/translate -H 'Content-Type: application/json' -d '{"q":"Hello","source":"en","target":"es"}' Excellent quality for supported languages, paid and hosted.
Broad language coverage, pay per character, hosted.
The underlying library, usable directly from Python without the HTTP server.
Flexible and context-aware, but slower and less predictable for bulk translation.
Other tools that share topics with LibreTranslate.
Spin up real databases and services in Docker from inside your tests.
An extremely fast Python package and project manager.
A simple self-hosted server for sending and receiving push notifications.