commandkit-i18n
Installation
SKILL.md
CommandKit i18n Plugin
Activation guidance
Use for multilingual command metadata and translated runtime responses.
Required filesystem expectations
- plugin registration in
commandkit.config.ts - locale files under
src/app/locales/<locale>/*.json - command/event handlers in
src/app/commands/**andsrc/app/events/**
Execution workflow
- Register
i18n()plugin. - Build locale directory and translation files.
- Add
$commandkeys for metadata localization. - Use
ctx.locale()in commands andlocale()in events/utilities. - Validate missing-key and fallback behavior.
Guardrails
- Keep translation keys stable across locales.
- Ensure all required keys exist in baseline locale.
Reference index
| Name | Description |
|---|---|
references/00-filesystem-structure.md |
Locale folder layout and naming expectations. |
references/01-plugin-setup.md |
Plugin setup baseline. |
references/02-locales-structure.md |
Locale file placement and organization details. |
references/03-command-metadata-localization.md |
$command and context menu metadata localization format. |
references/04-locale-helpers.md |
Runtime locale helper usage in commands/events. |
Tool index
| Name | Description |
|---|---|
tools/generate-locale-file.mjs |
Prints a locale JSON starter template for a command and locale code. |
Related skills