Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

find-missing-translations

БесплатноБез исполняемых скриптовНе проверен

Translation audits of `strings.xml` locales in `commonsUI/.../composeResources` and `amethyst/src/main/res`: missing or untranslated keys, CLDR plural…

vitorpamplonaот vitorpamplona★ 1 630 звёзд на GitHub

Об этом скилле

Find missing translations

How to author a new string (where it goes, Res.string, positional args, Compose escaping) is in AGENTS.md "Strings" — not repeated here. This skill is the audit: diff locales against their default, fill the gaps, and pass the gates.

Two catalogs — scan both, report separately

Each catalog's counts are its own; report them separately.

Catalog Default file Holds
commonsUI (Compose resources, Android + Desktop) commonsUI/src/commonMain/composeResources/values/strings.xml Every feature string: the large catalog, where nearly all gaps are
amethyst (Android res/) amethyst/src/main/res/values/strings.xml The synchronous-platform tier only: small, and shrinking as keys move out
  • New keys always go in commonsUI. A feature key found in the amethyst tree belongs in commonsUI: move it with tools/strings-migrate/migrate.py <keys…> (moves every locale byte-for-byte), don't translate it in place.
  • The two trees' locale dirs need not match: enumerate values-* under each base, don't assume.
  • A key name present in both trees does not mean the same English. Copy an existing translation across trees only when the two English values are byte-identical; otherwise translate fresh (or copy from the key whose value matches).
  • The trees escape differently. commonsUI authors edge whitespace raw, never quote-wrapped, and \' renders literally there; copying Android-style "replying to " or \' into commonsUI is a bug. tools/agent-hooks/compose_escaping_check.py catches it (CI and pre-push).
  • Same English repeated under many keys (Cancel, Save, …) across the trees is expected. Don't dedupe during a translation pass.

Default target locales

values-cs, values-de, values-sv, values-pt (unless the user names others).

House conventions of the existing translations. Follow them, and grep the locale file for a term before coining one:

Locale Addresses the user as relay / signer Also
cs formal vy (vaše, Zkuste) relé (or relay) / podepisovač masculine past tense (se připojil), never připojil(a) doublets
de du (deine) Relay / Signierer dev loanwords stay (Commit, Branch, Repository)
sv du (dina) relä / signerare
pt (Brazilian) você (seus) relay / assinador one also covers 0, so a one item keeps the number

In all four, decimals take a comma (~1,2 km). cs, de and sv typography puts a space before % (5 %), though the existing files are mixed; pt-BR writes 5%. Brand and tool names stay as they are (Claude Code, GitHub, ngit, Amethyst).

Where a translation goes

Translations live only in this repo; Crowdin is retired, so nothing overwrites a value later.

  • Base folder = the full translation. Each language has one: values-es (Mexican Spanish), values-pt (Brazilian), values-zh (Simplified), values-de, … Translate there.
  • A regional folder holds only that region's differences (values-es-rES, values-es-rUS, values-nl-rBE, values-ru-rUA, values-zh-rSG). Android and Compose resources resolve a key region → language → default one key at a time, so a key the regional file lacks shows the base translation, not English. Don't diff a regional folder against the default: nearly everything is "missing" by design. batch.py refuses one.
  • Exceptions: values-zh-rTW and values-zh-rHK are full Traditional-Chinese files (values-zh is Simplified, so they must not fall back to it); diff and fill them like a base folder. values-en-rGB overrides the default English.
  • Indonesian is values-in, never values-id: commonsUI's build serves the folder under both codes, since Locale reports in on Android 14 and older but id on desktop and Android 15+.
  • tools/agent-hooks/locale_layout_check.py (pre-push and CI) rejects a regional value identical to the base one; --fix deletes them.
  • Copy the English verbatim for keys a locale keeps in English (brand names like Nowhere …, loanwords like Apps/Feed, format-only values like v%1$s, +%1$d), so the key no longer counts as missing. Never for <plurals> (English one/other in cs/pl fails MissingQuantity), and not for words the locale really translates (German "Arbeitsbereich", "Training"): list those for a human translator instead.
  • tools:ignore goes on the source entry in amethyst/src/main/res/values/strings.xml, never on a locale file. Never add tools: attributes to the commonsUI catalog at all: its root doesn't declare the namespace, so the XML becomes malformed (the escaping check flags it). Before suppressing, grep -rn "<key>" --include='*.kt': an unused key should be deleted instead.

1. Diff each locale, both resource types

Diff <string> and <plurals> separately (a missing <plurals> never shows in a <string> diff), and diff every target locale — files are asymmetric

Полный SKILL.md на GitHub

Установить find-missing-translations в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл find-missing-translations?

Translation audits of `strings.xml` locales in `commonsUI/.../composeResources` and `amethyst/src/main/res`: missing or untranslated keys, CLDR plural categories, base vs regional locale folders, lint gates. Use before translating or seeding locale files.

Как установить скилл find-missing-translations?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл find-missing-translations запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить find-missing-translations с