Web interface for TranslateGemma, Google's open translation model.
- 55 languages — searchable language selector with recent language pills
- Auto-translate — starts translating as you type, no button needed
- Local inference — no data leaves your machine, powered by Ollama
- Remembers preferences — last used language pair and recents restored on reload
- Swap languages — flip source and target with one click
- Translation stats — shows duration and token count after each translation
- Rate limiting — built-in per-IP rate limiter for API requests
- Localized UI — interface labels adapt to your browser's language
- Light & dark mode — follows your system preference
- Multi-arch Docker — native images for
linux/amd64andlinux/arm64
services:
translategemma-ui:
image: realies/translategemma-ui
container_name: translategemma-ui
restart: unless-stopped
ports:
- 3000:3000
environment:
- OLLAMA_URL=http://host.docker.internal:11434
extra_hosts:
- "host.docker.internal:host-gateway"Access the UI at http://localhost:3000
Ollama running with a TranslateGemma model:
ollama pull translategemma:27b # best quality (~16GB)
ollama pull translategemma:12b # balanced (~7GB)
ollama pull translategemma:4b # fastest (~2.5GB)| Variable | Default | Description |
|---|---|---|
OLLAMA_URL |
http://localhost:11434 |
Ollama API endpoint |
DEFAULT_MODEL |
translategemma:27b |
Model to use (27b, 12b, or 4b) |
PORT |
3000 |
Server port |
HOST |
0.0.0.0 |
Server host |
Arabic, Bengali, Bulgarian, Catalan, Chinese (Simplified/Traditional), Croatian, Czech, Danish, Dutch, English, Estonian, Filipino, Finnish, French (Canada/France), German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Kannada, Korean, Latvian, Lithuanian, Malayalam, Marathi, Norwegian, Persian, Polish, Portuguese (Brazil/Portugal), Punjabi, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish (Mexico), Swahili, Swedish, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Zulu
- TanStack Start — React 19 full-stack framework
- Tailwind CSS — styling
- TypeScript — type safety
