Home / use case

Local PLaMo 3 Translate API plus a game diff-translator that keeps human edits

At a glance
Models & engines
Model used: PLaMo 3 Translate 0.8B Q4_K_M GGUF (~573 MB on disk); API default listen address http://127.0.0.1:8787
Windows zip is about 3.3 MB for the API binary; llama.cpp and the model are fetched separately by setup.ps1 with hash checks
Key gotcha
Even on localhost the API checks Host/Origin so a random open web page cannot silently call translate.

What they built

After PFN published PLaMo 3 Translate, Tom built `local-jp-translate` (`jptranslate`): a Go HTTP API and CLI that starts or attaches to a local llama-server and keeps source and translations on the machine after the first model download.

A second project, `game-l10n-updater` (`gamel10n`), stores Japanese source strings and per-language translations as JSON, hashes prior text, and sends only new or changed entries to the API so full-file retranslation is unnecessary.

Human-edited, approved, and locked translations are kept; if Japanese source later changes, the old translation stays and the entry is reported as needs_review. A Godot addon measures real font overflow using the live UI width.

Setup

  • Model used: PLaMo 3 Translate 0.8B Q4_K_M GGUF (~573 MB on disk); API default listen address http://127.0.0.1:8787
  • Windows zip is about 3.3 MB for the API binary; llama.cpp and the model are fetched separately by setup.ps1 with hash checks
  • Author tested on Windows CPU, loaded the real model, and imported translations into a Godot sample
  • Repos: https://github.com/marvelousu/local-jp-translate and https://github.com/marvelousu/game-l10n-updater

How it works

  1. On Windows, expand the release zip, run `.\scripts\setup.ps1 -AcknowledgeModelLicense`, then start `jptranslate.exe serve` pointing at the downloaded llama-server and GGUF.
  2. POST JSON to `/translate` with text, source, target, and optional style (for example polite Japanese), or use the CLI `translate` subcommand.
  3. For games: `gamel10n init`, fill `source/catalog.json` with keys/text/context/max_length, then `plan` and `sync` against the running API.
  4. Run the Godot overflow check on Labels/Buttons/RichTextLabels that declare translation keys so wide English buttons surface as layout failures, not only placeholder mismatches.

Results & numbers

  • Short English `Please save your changes.` returned Japanese `変更内容を保存してください。` in about 197 ms on Windows CPU after the model was already loaded.
  • Sample menu strings translated usable English for short labels like 保存する → Save, while longer lines sometimes needed human polish (for example visit-again and save-and-return-to-title wording).
  • After manually editing a model translation and changing the Japanese source, sync kept the edit and flagged needs_review; unchanged strings were not retranslated.
  • In the Godot sample a deliberately narrow button had 172 px available width versus a 467 px English string, which the layout report flagged.

Gotchas

  • Even on localhost the API checks Host/Origin so a random open web page cannot silently call translate.
  • Placeholder and tag counts are validated; a translation that drops `{name}` or similar is rejected even if the prose looks fine.
  • Automatic wording is not enough for game tone: the author still expects humans to review longer UI copy.
  • Commercial use and publishing of model outputs follow the PLaMo Community License (Built with PLaMo) as summarized in the article.

Do it yourself

  1. Download the local-jp-translate release for your OS and run the setup script that acknowledges the model license.
  2. Start the serve command and translate one sentence with Invoke-RestMethod or the CLI.
  3. If you ship a game catalog, init gamel10n, add a few keyed strings, and run plan/sync against the local API.
  4. Edit one translation by hand, change its Japanese source, sync again, and confirm needs_review instead of a silent overwrite.
$body = @{
  text = "Please save your changes."
  source = "en"
  target = "ja"
  style = "polite"
} | ConvertTo-Json

Invoke-RestMethod -Method Post `
  -Uri http://127.0.0.1:8787/translate `
  -ContentType 'application/json' `
  -Body ([Text.Encoding]::UTF8.GetBytes($body))
Source: Zenn · Published 2026-11-07 · Added 2026-11-07. This write-up summarizes the original source; see it for full details.

Similar setups

plamo-tr-local: a pipeable CLI that runs PLaMo 3 Translate fully offline

Conao3's Rust CLI downloads a PLaMo 3 Translate GGUF once, builds the PFML3 prompt locally, and translates stdin or --text through llama.cpp with no API key; measured MIT-license translation on a Core Ultra 5 225U CPU.

Conao3 Notes · 2026-11-07

A private OpenAI-compatible LLM API on an AMD GPU with llama.cpp

A Vietnamese developer's notes on building llama.cpp for AMD cards, choosing between Vulkan and ROCm, and running llama-server as a locked-down systemd service that existing OpenAI SDK code can call.

DEV Community (EME GUG) · 2026-11-27

llama.cpp 1.0 on a handheld PC's integrated GPU: 2x faster long prompts with flash attention

Before-and-after llama.cpp 1.0 tests on an MSI Claw's Intel Arc 140V found long prompts read about twice as fast only with flash attention on, and the new MoE cache lost to full GPU offload.

DEV Community (maruhana) · 2026-11-27

Typd: offline voice dictation where one fine-tuned Qwen3-ASR model in llama.cpp writes the finished text

Mehmet Dedeler built Typd, a GPL-3.0 Electron app for Windows and Apple-silicon Macs that runs a dictation model fine-tuned from Qwen3-ASR 1.7B in llama-server and pastes cleaned-up text into whatever app you're typing in.

Typd on GitHub · 2026-11-16