From rules-for-ai
Manages user-level locale preferences (.config/rules-for-ai/LOCALE.md) for issues, PRs, comments, and logs. Sets or changes language tags via key=value pairs or interactive prompts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rules-for-ai:hashiiiii-localeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manage the user-level LOCALE file that rules-for-ai resolves at session start.
Manage the user-level LOCALE file that rules-for-ai resolves at session start.
~/.config/rules-for-ai/LOCALE.md (user level; respect $XDG_CONFIG_HOME when set)LOCALE.default.md (all en_US)The winning file is used as a whole; layers never merge. That is why every LOCALE file must carry all five keys.
There is no project-level LOCALE file. A project-specific language policy is an ordinary project instruction: it belongs in that project's CLAUDE.md / AGENTS.md (e.g. "Write issues in English"), and project instructions override resolved locale keys.
CLAUDE.md / AGENTS.md insteadja_JP): apply it to all five keys| Key | Artifact |
|---|---|
issues | Issues |
pull-requests | Pull requests |
comments | Code comments |
logs | Log messages |
test-logs | Test log messages |
Example: issues=ja_JP pull-requests=ja_JP comments=ja_JP logs=en_US test-logs=en_US
Always target ~/.config/rules-for-ai/LOCALE.md ($XDG_CONFIG_HOME/rules-for-ai/LOCALE.md when XDG_CONFIG_HOME is set). Never write a LOCALE file into a project.
ja_JP, en_US, en_GB) as given; do not translate or normalizekey=value lines: no spaces around =, one key per line, LF line endingsmv it over the targetFile format (exactly this shape):
# Locale
issues=ja_JP
pull-requests=ja_JP
comments=ja_JP
logs=en_US
test-logs=en_US
| Mistake | Fix |
|---|---|
Writing a project-root LOCALE.md | The project layer does not exist; put project policy in that project's CLAUDE.md / AGENTS.md |
| Leaving keys out | Always write all five keys |
Inventing keys like commits | Only the five keys in the table exist |
Spaces around = (issues = ja_JP) | Strict issues=ja_JP only |
npx claudepluginhub hashiiiii/rules-for-ai --plugin rules-for-aiInjects i18n considerations into brainstorming, planning, and review workflows. Prompts teams to think about localization before code is written; adapts enforcement based on project configuration.
Sets up Lokalise local dev loop: i18n structure, TS exports, push/pull scripts, auto-sync watching, React/Vue integrations, mocks, pre-commit hooks.
Guides internationalization and localization: detecting hardcoded strings, managing translation files, implementing RTL support, and using i18n libraries (react-i18next, next-intl, gettext).