Rabby i18n translation

From RabbyHub/Rabby · View interactive version

Rabby i18n translation is an AI agent skill from the GitHub repository RabbyHub/Rabby. When updating `_raw/locales` translation files in the Rabby repository, backfill only non-skipped English leaf keys that are missing or empty in other locales, preserve placeholders, and respect `__skip_translation` markers.

How to use this skill

Skill file

Rabby I18n Translation

Use this playbook when editing locale JSON files under:

When adding or removing a supported language, also update:

The browser extension manifest locale files under _raw/_locales/*/messages.json use Chrome message/description objects. Edit them only when the task explicitly targets extension manifest metadata, and preserve that object shape.

Scope

Backfill only leaf string keys where English has a non-empty value and the target locale either:

Do not rewrite existing non-empty translations during a missing-key backfill.

Skip Rules

Always evaluate __skip_translation before deciding what is missing.

  1. __skip_translation: true

The entire object is excluded from translation. Do not add, translate, or count any descendant leaf key in that object.

  1. __skip_translation: ["keyA", "keyB"]

The listed direct child keys are excluded from translation. Do not add, translate, or count those keys, including their descendants if a listed key is an object.

  1. The __skip_translation marker itself is metadata.

Do not translate it, copy it into other locale files, or count it as a missing user-facing key.

Quality Rules

Validation

After edits:

  1. Parse every _raw/locales/*/messages.json file with JSON.parse.
  2. Compare every non-skipped English leaf string against each target locale and verify no non-skipped key is missing or empty.
  3. Verify placeholder sets match between English and every translated value.
  4. Run git diff --check.

For locale-only JSON changes, the full app typecheck and Jest suite can be skipped if no TypeScript or import graph changed; state that explicitly in the handoff.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.