Self-host TransLite
Minimal PHP frontend for four translation engines
docker compose up -d- Port
- 8080 (HTTP listener of the TransLite container)
git.bloat.cat/gospodin/transliteWhat is TransLite?
TransLite puts a single plain translation form in front of Google Translate, DeepL, Yandex and DuckDuckGo Translate, so you can use those engines without visiting their sites. Visitors pick one engine or turn on several at once, choose source and target languages from long per-engine lists (autodetect is available on the source side), swap the two directions, and read the result in a second text area with audio buttons next to each side. JavaScript stays off unless the user opts in, which then gives automatic text-area resizing and swap/clear without a page reload; switching to POST requests lifts the form's 2000-character GET limit for longer input, at the cost of translation links no longer carrying the text. Accesskeys cover both language lists, both text areas, both audio buttons, swap, translate and clear. A settings page holds engine, language-selector style and default-language choices with Save and Reset. Instance owners can set default source and target languages and the GET form length through environment variables. Self-hosting means either running the published container image behind Docker Compose or installing the PHP files yourself with php-fpm and a few extensions, plus a web server. There is no account system or login; the code is published under the Unlicense, and the public instance at tl.bloat.cat shows what you get.
TransLite alternatives
Libre TranslateFree and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.CompareLibre Translate with TransLite
LibreTranslateOpen-source, self-hosted machine translation API powered by Argos Translate. Runs offline; REST endpoints, web UI, file translation, API keys.CompareLibreTranslate with TransLite- SimplyTranslateSelf-hosted, open-source frontend for multiple translation engines (Google Translate, iCIBA, Reverso) with a web UI, JSON API and text-to-speech.CompareSimplyTranslate with TransLite
lingva-translateOpen-source Google Translate front-end that scrapes translations so browsers avoid Google tracking; self-hosted with Docker, REST and GraphQL APIs, 100+ languages.Comparelingva-translate with TransLite
MTranServerOpen-source, self-hosted offline translation server that runs without a GPU, with DeepL, Google and Immersive Translate compatible APIs; run via Docker or npm.CompareMTranServer with TransLite
Ever TraduoraSelf-hosted, open-source tool for managing app translations: teams edit strings together, and files move in and out as JSON, YAML, XLIFF, PO and more.CompareEver Traduora with TransLite
OmniPolyOmniPoly is a self-hosted, open-source web frontend unifying translation (LibreTranslate), grammar checking (LanguageTool), and AI text analysis (Ollama).CompareOmniPoly with TransLite
LingarrSelf-hosted, open-source app that translates movie and TV subtitle files using LibreTranslate, DeepL, Google, or AI providers like OpenAI and Ollama.CompareLingarr with TransLite
Should you self-host TransLite?
TransLite scores 49/100 on selfhost.directory (how scoring works) and ranks #8 of 11 in Translation.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Unlicense-licensed.
Its closest alternative on selfhost.directory is LibreTranslate (79/100, 17 771 stars). It scores higher overall, so compare the two before you pick. See TransLite vs LibreTranslate side by side.
Features
- Audio playback buttons
- Configurable form length limit
- Keyboard Shortcuts
- Language autodetection
- Multiple translation engines
- Opt-in JavaScript
- Per-user settings page
- POST translation mode
How to install TransLite
Install TransLite with Docker Compose
MAX_LINK_LENGTH, PREF_SL, PREF_TLCopy compose.example.yaml to compose.yaml, edit it to suit your needs and run docker compose up -d.
Image published at git.bloat.cat/gospodin/translite; commit-linked tags let you revert a broken image.
More in Translation
Whisper-WebUISelf-hosted Gradio web UI that turns Whisper speech recognition into an easy subtitle generator: transcribe files, YouTube links or microphone.
AccentSelf-hosted, open-source translation management platform for developers with CLI, GraphQL API, history rollback, and multiple format support.
Ever TraduoraSelf-hosted, open-source tool for managing app translations: teams edit strings together, and files move in and out as JSON, YAML, XLIFF, PO and more.
LanguineSelf-hosted, open-source AI localization: a Next.js dashboard, CLI and GitHub Action that translate JSON, Markdown, iOS and Android files via a configurable model.
Libre TranslateFree and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
LibreTranslateOpen-source, self-hosted machine translation API powered by Argos Translate. Runs offline; REST endpoints, web UI, file translation, API keys.
LingarrSelf-hosted, open-source app that translates movie and TV subtitle files using LibreTranslate, DeepL, Google, or AI providers like OpenAI and Ollama.
lingva-translateOpen-source Google Translate front-end that scrapes translations so browsers avoid Google tracking; self-hosted with Docker, REST and GraphQL APIs, 100+ languages.
llotSelf-hosted, open-source translation service using local LLMs via Ollama with 38 languages, real-time translation, dark mode, and Wyoming TTS support.
MTranServerOpen-source, self-hosted offline translation server that runs without a GPU, with DeepL, Google and Immersive Translate compatible APIs; run via Docker or npm.
OmniPolyOmniPoly is a self-hosted, open-source web frontend unifying translation (LibreTranslate), grammar checking (LanguageTool), and AI text analysis (Ollama).
OmniVoice-StudioThis self-hosted, open-source ElevenLabs alternative clones and designs voices, dubs video and builds audiobooks in 646 languages, fully local on desktop or Docker.
0 comments