find-missing-translations
БесплатноБез исполняемых скриптовНе проверенTranslation audits of `strings.xml` locales in `commonsUI/.../composeResources` and `amethyst/src/main/res`: missing or untranslated keys, CLDR plural…
от 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.pycatches 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.pyrefuses one. - Exceptions:
values-zh-rTWandvalues-zh-rHKare full Traditional-Chinese files (values-zhis Simplified, so they must not fall back to it); diff and fill them like a base folder.values-en-rGBoverrides the default English. - Indonesian is
values-in, nevervalues-id: commonsUI's build serves the folder under both codes, since Locale reportsinon Android 14 and older butidon desktop and Android 15+. tools/agent-hooks/locale_layout_check.py(pre-push and CI) rejects a regional value identical to the base one;--fixdeletes them.- Copy the English verbatim for keys a locale keeps in English (brand names like
Nowhere …, loanwords likeApps/Feed, format-only values likev%1$s,+%1$d), so the key no longer counts as missing. Never for<plurals>(Englishone/otherin cs/pl failsMissingQuantity), and not for words the locale really translates (German "Arbeitsbereich", "Training"): list those for a human translator instead. tools:ignoregoes on the source entry inamethyst/src/main/res/values/strings.xml, never on a locale file. Never addtools: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
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic