i18n-before-release
БесплатноЗапускает вложенные скриптыНе проверенOccasional i18n catch-up: strip unused en keys, then fill any uk translations that slipped through via i18n-editor subagents. Not a required release step – uk…
от letehaha★ 280 звёзд на GitHubОб этом скилле
Occasional i18n catch-up (a safety net, not a required release step – uk is translated alongside en during feature work): strip unused en keys, then fill any missing translations in the in-house translated locales. All key detection is done by .claude/skills/i18n-before-release/i18n-audit.mjs (run from repo root) — never parse or diff locale JSON files yourself, and never read locale files directly (a hook blocks them; only the i18n-editor subagent may touch them).
Steps
1. Find unused en keys
node .claude/skills/i18n-before-release/i18n-audit.mjs unused
The report has two buckets:
- UNUSED — the full key (with plural suffixes stripped) appears nowhere in
packages/{frontend,backend}/src. Candidates for removal. - POSSIBLY DYNAMIC — only matched via dynamic key construction (template literals,
'prefix.' +concatenation). Treat these as used; do NOT review or strip them. Only mention the count.
Sanity-check the UNUSED bucket: pick ~5 keys from it and grep the codebase for each (search the full dotted path and the leaf segment). If any spot-check finds a real usage the script missed, STOP and report the gap to the user instead of stripping.
2. Confirm and strip
Show the user the UNUSED count and a compact list (key ids only), then ask via AskUserQuestion whether to strip all of them, skip stripping, or let them pick exclusions. On approval:
# write approved ids (fe:/be: prefixed, one per line) to a scratchpad file, then:
node .claude/skills/i18n-before-release/i18n-audit.mjs strip --keys-file <scratchpad-file>
node .claude/skills/i18n-before-release/i18n-audit.mjs prune-extra
strip removes the keys from en and mirrors the removal into every other locale. prune-extra then drops any non-en keys/files that have no en counterpart.
3. Find missing translations
node .claude/skills/i18n-before-release/i18n-audit.mjs missing
missing only ever reports the locales in the script's TRANSLATED_LOCALES set (uk).
Every other locale — es, id, both Chinese variants, anything added later — is community-translated
in Crowdin and is deliberately not our work. Never widen the pass to a locale the script omits,
and never hand a subagent a locale code it didn't report.
If nothing is missing, skip to step 5.
4. Translate via i18n-editor subagents
Spawn one i18n-editor subagent per locale reported in step 3, in parallel (they edit disjoint file trees). Prompt for each:
This is an explicit pre-release bulk-translate pass into locale
<code>— editing non-en locale files IS the assignment; treat en as read-only source. Runnode .claude/skills/i18n-before-release/i18n-audit.mjs missing --json --locale <code>from the repo root to get your full work list: every missing key with its target file (frontend chunk path relative topackages/frontend/src/i18n/locales/chunks/<code>/, orpackages/backend/src/i18n/locales/<code>.jsonfor backend) and the en source value. Translate each value into<code>and insert it at the same key path, preserving{named}interpolation placeholders,@:linked-message references, and vue-i18n|plural separators verbatim in structure. Read files withcat -n(Read tool is hook-blocked), edit with Edit, validate JSON after. Report a per-file count of added keys.
Translation quality notes: match the tone of existing translations in the same file; domain terms (account, transaction, portfolio, holding) should reuse the wording already established in that locale.
5. Verify
node .claude/skills/i18n-before-release/i18n-audit.mjs missing
Must print "All locales are complete". If keys remain, re-spawn the affected locale's subagent once with the remaining list; if it still fails, report which keys are stuck instead of retrying further. (This run also re-parses every locale file, so it doubles as JSON validation.)
6. Wrap up
Report: keys stripped, keys pruned, keys translated per locale. Remind the user to review git diff, commit themselves (never commit for them), and run npm run i18n:crowdin:upload to sync translations to Crowdin.
Установить i18n-before-release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл i18n-before-release?
Occasional i18n catch-up: strip unused en keys, then fill any uk translations that slipped through via i18n-editor subagents. Not a required release step – uk is translated alongside en during feature work, so this is a safety net. Trigger on "/i18n-before-release", "actualize i18n", "fill missing translations", "strip unused translation keys".
Как установить скилл i18n-before-release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл i18n-before-release запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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