i18n
БесплатноЗапускает вложенные скриптыНе проверенAudits, synchronizes, and prepares translation work for the repository's next-intl UI resources under translations/. Use when UI translation keys or locale…
от aicodingstack★ 31 звезда на GitHubОб этом скилле
I18n management
This skill manages UI messages under translations/. Manifest-localized content under manifests/**/translations belongs to the manifest workflow.
Read docs/I18N-ARCHITECTURE-RULES.md before reorganizing namespaces. The enabled locale list in src/i18n/config.ts is authoritative; currently all 12 locales are required.
Current structure
translations/{locale}/shared.jsontranslations/{locale}/components/{common,controls,navigation,product,sidebar}.jsontranslations/{locale}/pages/*.jsontranslations/{locale}/index.ts
Do not recreate the retired monolithic components.json or old page names. Keep each locale's JSON file/key structure aligned with English, but preserve the namespace architecture defined by the project document.
Synchronize keys safely
Preview first; the default command is read-only and exits non-zero when drift exists:
node .agents/skills/i18n/scripts/sync.mjs --check
After reviewing the report, apply structural synchronization explicitly:
node .agents/skills/i18n/scripts/sync.mjs --write
Write mode adds missing keys with English placeholders and removes extra keys inside matching JSON files. It does not delete extra files; review those manually because a file may represent an in-progress namespace migration. Always inspect the Git diff.
The sync helper manages JSON only. When adding, renaming, or removing a namespace file, update every locale's index.ts explicitly and validate the import/export shape.
Prepare a translation batch
node .agents/skills/i18n/scripts/translate.mjs ja
The script emits translation candidates: missing values and values exactly equal to English, grouped by file. Some exact matches are intentionally shared product names or technical terms and should remain unchanged after review. It deliberately does not use a Latin-letter heuristic because legitimate German, Spanish, brand names, code, and technical terms contain Latin characters. The agent applies reviewed translations with normal repository edits; the script does not apply generated text.
When translating:
- preserve ICU/next-intl placeholders, plural/select branches, tags, URLs, paths, code, and
@:references exactly; - reuse existing terminology before inventing a new translation;
- preserve product/model names unless an official localized name exists;
- translate meaning in page context, not isolated words;
- update all affected locales in the same change; English placeholders are only a temporary synchronization state.
Validate
pnpm validate:i18n
pnpm validate:i18n-usage
pnpm validate:i18n-duplicates
pnpm test:validate
For release-ready work, also run pnpm check and pnpm test:ci.
Установить i18n в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл i18n?
Audits, synchronizes, and prepares translation work for the repository's next-intl UI resources under translations/. Use when UI translation keys or locale content change.
Как установить скилл i18n?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл i18n запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic