← all repositories
mololab/json-translator

JSON i18n via GPT, Google, or a local Llama

Because maintaining translated JSON by hand is a special kind of hell, this tool farms the work out to whatever translation backend you still have API credits for.

616 stars TypeScript Language ModelsData Tooling
json-translator
Not currently ranked — collecting fresh signals.
star history

What it does

jsontt is a Node-based CLI and library that ingests JSON or YAML files and translates every string value into one or more target languages, including deeply nested objects. It acts as a router to more than a dozen backends, from free cloud scrapers like Google Translate and Bing to paid APIs such as DeepL and OpenAI, plus local inference via llama-cpp.

The interesting bit

The standout feature is --fallback: if your chosen module hits a rate limit or fails, the tool automatically tries another backend rather than aborting the job. It also exposes a concurrency limiter, which is essentially a built-in apology for how aggressively free translation endpoints throttle you.

Key highlights

  • Supports both JSON and YAML, including deep object traversal.
  • Backends range from free options (Google, Bing, Libre, Argos, llama-cpp) to key-gated LLMs (GPT-4o, Gemma, Mixtral, Llama via Groq).
  • CLI can batch-translate into multiple languages in one pass.
  • Automatic fallback logic retries with alternative modules on failure.
  • Proxy support for the Google Translate module to mitigate IP throttling.

Caveats

  • Proxy support is restricted to the Google Translate module only.
  • Browser support is listed as “will come soon,” so it is strictly Node.js and CLI for now.
  • Many backends (DeepL, OpenAI, Groq) require API keys; the “FREE” label applies only to specific modules.

Verdict

Worth a look if you maintain i18n files and want one utility that can pivot between free scrapers, paid APIs, and local LLMs. Skip it if you need a browser-based workflow or collaborative review features.

Frequently asked

What is mololab/json-translator?
Because maintaining translated JSON by hand is a special kind of hell, this tool farms the work out to whatever translation backend you still have API credits for.
Is json-translator open source?
Yes — mololab/json-translator is open source, released under the MIT license.
What language is json-translator written in?
mololab/json-translator is primarily written in TypeScript.
How popular is json-translator?
mololab/json-translator has 616 stars on GitHub.
Where can I find json-translator?
mololab/json-translator is on GitHub at https://github.com/mololab/json-translator.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.