KAERIS i18n

السجل الرسمي أخرى

Translate app language files into 46 languages and check placeholders, plurals and missing keys.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

PYPI package kaeris-mcp
Claude Code
claude mcp add kaeris-i18n -e 'KAERIS_API_KEY=<your kaeris_api_key>' -e 'KAERIS_OPENROUTER_KEY=<your kaeris_openrouter_key>' -- uvx kaeris-mcp==0.2.16
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "kaeris-i18n": {
            "command": "uvx",
            "args": [
                "kaeris-mcp==0.2.16"
            ],
            "env": {
                "KAERIS_API_KEY": "<your kaeris_api_key>",
                "KAERIS_OPENROUTER_KEY": "<your kaeris_openrouter_key>"
            }
        }
    }
}

متغيرات البيئة

  • KAERIS_API_KEY سري KAERIS API key (optional; the free demo works without one)
  • KAERIS_OPENROUTER_KEY سري OpenRouter key for the Lifetime (BYOK) plan (optional)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. KAERIS i18n — MCP Server
  2. Tools
  3. Reproducible by design
  4. Install
  5. Configure your client
  6. Auth & tiers (all optional)
  7. Example prompts
  8. License

KAERIS i18n — MCP Server

AI-native localization over the Model Context Protocol. Give Claude Desktop, Cursor, Claude Code (or any MCP client) the ability to translate your app's strings into 46 languages — placeholder-safe, format-aware, incremental, with built-in Translation QA.

Tools

ToolWhat it doesCalls the API?
kaeris_scan_repoDiscover a repo's i18n setup: locale files found, base language, target languages, framework guess (i18next/next-intl/vue-i18n/Flutter/Android/iOS/gettext/generic)No
kaeris_statusCompleteness/health per target locale — missing keys, extra keys, placeholder mismatches, plus the quality detectors that gate a merge in CI: number drift, lost inline tags, broken entities/escapes, ICU/CLDR plural gaps (same verdict as kaeris check --json)No
kaeris_list_missing_keysThe exact missing/broken keys (with source text) for one target locale, so an agent knows exactly what to fixNo
kaeris_list_languagesList all supported target languagesYes, free (no quota)
kaeris_translateTranslate inline strings → per-language results, with QA (placeholder-loss & UI-overflow flags; verify=True back-translates to check meaning)Yes
kaeris_translate_fileTranslate a file on disk (JSON/YAML/.strings/.xcstrings/.po/ARB/XML/CSV/XLIFF/.properties/.resx/.ftl/Markdown), optional incremental — reproducible via kaeris.lockYes
kaeris_add_languageBootstrap a brand-new target locale by translating the whole source file into itYes

The first three tools are local-only (no network call, no cost), and kaeris_list_languages is one free API call that counts toward no limit — an agent can use all four freely to audit and understand a repo's i18n before deciding what (if anything) to translate.

Reproducible by design

kaeris_translate_file with only_new=True keeps a kaeris.lock next to your source file — the same lock the CLI writes, so an agent and a human sharing a repo stay in sync. It records a hash of every source string plus the settings that produced it: tone, glossary, app context, and the model. That means:

  • Edit one string — only that string is re-translated; everything else stays byte-for-byte.
  • Change tone, glossary or context — the whole locale is re-translated, never a mix of old and new.
  • Change plan — every tier runs the same model (Gemini 2.5 Flash-Lite), so upgrading does not force a re-translation. The lock records the model regardless: the day we change it, the locale is rebuilt in full instead of quietly ending up the work of two models.

Commit kaeris.lock alongside your source file so the agent, your teammates and CI all agree on what is already done.

Install

pip install kaeris-mcp
Or run it with Docker
docker build -t kaeris-mcp .
docker run -i --rm -v "$PWD:/work" -w /work kaeris-mcp

The server speaks JSON-RPC over stdin/stdout, so there is no port to expose — -i is what keeps the conversation open. Mount your project at /work and the repo-aware tools (scan_repo, status, list_missing_keys) read it directly; pass -e KAERIS_API_KEY=… to use your KAERIS key.

Configure your client

Claude Desktop — add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

{
  "mcpServers": {
    "kaeris-i18n": {
      "command": "kaeris-mcp",
      "env": {
        "KAERIS_API_KEY": "kaerisp_optional"
      }
    }
  }
}

Cursor — Settings → MCP → Add, or .cursor/mcp.json:

{ "mcpServers": { "kaeris-i18n": { "command": "kaeris-mcp" } } }

Claude Code — one command:

claude mcp add kaeris-i18n kaeris-mcp

Restart the client; the KAERIS tools appear automatically.

Auth & tiers (all optional)

Env varPurpose
KAERIS_API_KEYYour KAERIS key, e.g. the free API key from kaeris.dev/docs/key (50k chars/file, no account) — without one, the free 10k-char demo is used
KAERIS_OPENROUTER_KEYOpenRouter key for Lifetime/BYOK — no monthly volume cap
KAERIS_API_URLOverride the API base URL
KAERIS_NO_UPDATE_CHECKSet to 1 to turn off the once-a-day "new version available" line (stderr only; already off in CI)

No key is required to try it — the free demo works out of the box.

Example prompts

  • "Translate the strings in locales/en.json into German, Ukrainian and Japanese."
  • "Add French and Spanish translations for these buttons: Save, Cancel, Delete."
  • "Only translate the new keys I added to en.json — don't redo the whole file."
  • "Check this repo's i18n and tell me what's missing or broken." (scans, then reports status — no API call)
  • "We don't have Ukrainian yet — add it." (bootstraps a new locale via translation)

License

MIT

الأسئلة الشائعة

ما هو KAERIS i18n؟

Translate app language files into 46 languages and check placeholders, plurals and missing keys.

كيف أثبّت KAERIS i18n؟

يعمل على جهازك. في Claude Code: claude mcp add kaeris-i18n -e 'KAERIS_API_KEY=<your kaeris_api_key>' -e 'KAERIS_OPENROUTER_KEY=<your kaeris_openrouter_key>' -- uvx kaeris-mcp==0.2.16. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج KAERIS i18n إلى مفتاح API؟

نعم. يتطلب KAERIS_API_KEY, KAERIS_OPENROUTER_KEY، وتضبطها في إعداداته.

هل KAERIS i18n مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون KAERIS i18n؟

ينشره kaeris-io. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.