Chuyển đến nội dung chính

TRANSLATOR

One command. Every locale.

champollion translates your app's locale files — JSON, TOML, YAML, Markdown — with per-language-pair control over method, model, and quality. Runs anywhere Node 20+ does.

Install

npm i -g champollion

Or run it ad hoc with npx champollion.

Three steps to translated

  1. 1
    Initialize

    The wizard detects your locale files, source language, and formats, then writes champollion.config.json.

    champollion init
  2. 2
    Configure a provider

    One key is enough to start — OpenRouter reaches 200+ models, or use Gemini's free tier.

    export OPENROUTER_API_KEY=sk-or-v1-...
    # or: export GEMINI_API_KEY=AI...
  3. 3
    Sync

    Translates what changed, skips what didn't, validates every string through the quality gate before writing.

    champollion sync

Ten methods, mixed per pair

Google Translate for French, an LLM for Japanese, a coached FST-gated plugin for Plains Cree — all in the same config. Every translation method is a config option, and each source→target pair picks its own.