Skip to content
Pocket Homelab
Install

Pocket Translate

v0.3.0 · Self-hosted · MIT

Translate anything, on your own server.

Pocket Translate translates text, photos, documents and conversations. Pocket AI translates with tone and context; an offline engine translates without sending text anywhere. Starred phrases go in a phrasebook, fixed terms in a glossary, and your history stays on your server. One Go binary, one SQLite file.

Install Translate with Pocket Core in one command:

curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --apps translate

On any Linux machine or a Mac. Already running Pocket Core? Apps → Install app → Translate. Add more apps to the line →

  • Included in Pocket Box
  • Sign in with Pocket Core
  • Works with Pocket AI and Pocket Voice and Pocket Learn and Pocket Notes and Pocket Files and Pocket Documents and Pocket Chat and Pocket Mail and Pocket Blog and Pocket Search and Pocket Day
The translator on an iPhone: “Where is the nearest pharmacy?” in Serbian, with recent translations belowThe translator on an iPhone: “Where is the nearest pharmacy?” in Serbian, with recent translations below

Translator

Type or paste, and read it in your language.

The language is detected and the translation appears next to it. Read it aloud, copy it or star it into your phrasebook; the camera button reads a photo. What you translated lately sits below.

The translator: a German delivery notice translated to Serbian by an offline engine, and recent translations belowThe translator: a German delivery notice translated to Serbian by an offline engine, and recent translations below

Conversation

Two people, two languages.

Each presses their microphone and speaks; it is written out by whisper through Pocket Voice, translated and read aloud for the other. Keep the conversation, save it as a note or download it.

  • Face-to-face mode for a phone on the table
  • Type instead of speaking at any time
  • Saved as a note in Pocket Notes
A conversation at a pharmacy in Florence: English and Italian turns, each with its translation, and a microphone for each sideA conversation at a pharmacy in Florence: English and Italian turns, each with its translation, and a microphone for each side

Phrasebook

The phrases you keep.

Star any translation into a collection such as Travel, Work or Doctor, with your own corrections and notes. Hide the translations to test yourself, or send phrases to Pocket Learn as flashcards.

  • Read aloud with one tap
  • Saved phrases from Google Translate through Takeout
  • Export and import as CSV
The phrasebook on an iPhone: collections and starred phrases in German, one of them being learntThe phrasebook on an iPhone: collections and starred phrases in German, one of them being learnt

Documents

Same layout, another language.

Word and PowerPoint come back with their formatting, tables, headers and footers; subtitles with their timings; Markdown and web pages with their markup; PDFs, scans too, as a Word document.

  • Translated in the background, with progress
  • Picked from Pocket Files or Pocket Documents
  • The translation filed back next to the original
Documents: a project brief, a rental agreement and a doctor's report, each translated and ready to downloadDocuments: a project brief, a rental agreement and a doctor's report, each translated and ready to download

History

Everything you translated.

By day, with the engine that translated it, searchable and filtered by kind or language. Kept as long as you like, or not at all; star an old translation and it joins your phrasebook.

  • Text, photos and speech in one list
  • Clear it whenever you want
The history by day: English, German and Italian translations with their languages, time and engineThe history by day: English, German and Italian translations with their languages, time and engine

And the rest of it

  • A glossary of your own

    Names, products and the terms your team uses, always translated the same way by the AI and the offline engines alike. DeepL glossaries import as CSV or TSV.

  • Offline when you want

    Offline never sends text anywhere: LibreTranslate for about fifty languages, NLLB-200 for two hundred. On a Pocket Box LibreTranslate is opt-in, as it adds about 3.5 GiB.

  • LibreTranslate-compatible

    /translate, /detect and /languages answer like LibreTranslate, so browser extensions, apps and scripts made for it work here; the API key is a Pocket Translate token.

  • Translate in other apps

    Pocket Chat and Mail translate a message, Notes and Blog a page, with your engine, tone and glossary. Pocket AI, Search and Pocket Day read your phrasebook.

  • Everyone their own

    Each person has their own history, phrasebook, glossary, documents and settings on one box.

Install

One container, engines if you want them.

Run the image with a data folder and open it on port 8080. Without Pocket Core, add your own OpenAI-compatible key for the AI. The docker-compose.yml file also starts LibreTranslate and NLLB-200; the first start downloads their language models, a few GB.

Already installed on a Pocket Box, with sign-in through Pocket Core and translation through Pocket AI. The offline LibreTranslate engine is opt-in there.

Every setting in the README →

The easiest way is the one command above. To run it on its own with Docker:

docker run -d --name pocket-translate -p 8080:8080 -v ./data:/data \
  -e BASE_URL=https://translate.example.com -e SECURE_COOKIES=true \
  -e ARGOS_URL=http://libretranslate:5000 \
  ghcr.io/abjelosevic88/pocket-homelab-translate:latest