/cc-arsenal:i18n-check [locale] [--scaffold]from cc-arsenal
Detects the project's i18n framework (next-intl, i18next, react-intl, vue-i18n, Django gettext, Rails I18n) and diffs locale files for missing keys, untranslated values, orphan keys, and hardcoded strings bypassing the i18n layer. Reports gaps grouped by locale and can scaffold missing keys.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Finds the three ways translations silently rot: a key added to the default locale but never copied to the others (missing), a key copied but never translated (still reads identical to the source), and a key left behind in one locale after being renamed or removed from the default (orphan). Also catches new UI copy that was hardcoded instead of routed through the i18n layer in the first place: the most common way a translation key never gets created.
Look for these signals, in order, and stop at the first match:
| Signal | Framework | Locale file layout |
|---|---|---|
package.json has next-intl; i18n.ts/i18n/request.ts | next-intl | messages/<locale>.json, nested |
package.json has i18next/react-i18next | i18next | public/locales/<lang>/<ns>.json or src/locales/<lang>.json, nested |
package.json has react-intl | react-intl | lang/<locale>.json, flat, or inline defineMessages (no files) |
package.json has vue-i18n | vue-i18n | src/locales/<lang>.json/.yaml, or <i18n> SFC blocks |
manage.py + locale/<lang>/LC_MESSAGES/*.po | Django gettext | .po catalogs, source strings live in code |
Gemfile + config/locales/*.yml | Rails I18n | YAML keyed by locale at the top level |
If two signals match (e.g. a monorepo with a Rails API and a Vue frontend), run this skill once per app, not once for the whole repo: their locale files don't overlap.
Read references/frameworks.md for the exact default-locale detection and the
flatten/diff one-liner for whichever framework you found. Every framework's diff
reduces to the same three sets (missing / untranslated / orphan) even though the file
format differs.
Run the bundled script rather than comparing by eye:
uv run <skill-dir>/scripts/i18n_diff.py messages/en.json messages/pt-BR.json messages/de.json
uv runs it with PyYAML resolved from the script header (install uv with
curl -LsSf https://astral.sh/uv/install.sh | sh). JSON-only projects can run it with
plain python3 instead. It takes the default locale file first, then any number of
other locale files (JSON nested or flat, YAML), and prints per locale:
It exits 1 if any key is missing or a locale file can't be read. For .po catalogs and
frameworks with one file per namespace, use references/frameworks.md and run the
script once per namespace pair where the files are JSON or YAML.
Do not filter out short or single-word identical matches. The bug class this skill exists for is exactly that: a one-word label like "Developer" left untranslated because it looked like it might legitimately be the same in both languages. Report every identical match and let a human judge which ones are real bugs: a "smart" filter that suppresses single words or short strings will suppress the real bugs along with the noise. The script already files numbers, URLs and placeholder-only values under a separate "likely fine" bucket instead of "untranslated"; keep that bucket in the report, and move brand names you can identify from context into it too: do not drop them.
Default scope is the diff against the base branch (git diff --name-only <base>...HEAD,
or git diff --name-only HEAD for uncommitted work): new UI copy is what actually
ships broken, and scanning the whole codebase on every check is slow and mostly re-finds
the same pre-existing debt. If the user explicitly asks for a full-codebase sweep, do
that instead. In an environment with subagent/Task support, spawn one per top-level
directory to keep the main context clean on a large repo; otherwise run the same grep
patterns directory-by-directory in a single sequential pass: the result is identical,
just slower on very large repos.
Read references/hardcoded-strings.md for the per-ecosystem patterns (JSX text nodes,
Vue templates, Django templates, Rails views) and their exclusions (code identifiers,
console.log/alert calls, strings already wrapped in the project's translate
function).
## pt-BR (messages/pt-BR.json, default: messages/en.json)
Missing (2):
- sidebar.developer
- settings.billing.title
Untranslated — identical to en (1):
- sidebar.developer = "Developer"
Orphan — not in en (1):
- sidebar.legacyLabel
## Hardcoded strings (bypass i18n) — 1 finding in changed files
- src/components/Sidebar.tsx:42 <span>Developer</span> (not wrapped in t()/useTranslations)
If a locale has zero findings across all three categories, say so in one line instead of printing an empty section: don't pad the report.
If the user wants the missing keys filled in rather than just reported, insert each
missing key into the target locale file at the correct nested path with the value
copied verbatim from the default locale: never invent a translation. This makes the
new key show up as "untranslated" the next time this skill runs, which is the correct
and honest state until a human or translation service actually translates it. For
gettext, add the msgid/msgstr "" pair (empty msgstr is the standard gettext
convention for untranslated). Preserve the file's existing key ordering and formatting
style: read a few existing entries first and match indentation/quote style before
writing.
Then close the loop: re-run the Step 2 command on the same files.
de.json never created) is not a
key-level diff: flag it once as "locale file not found" and stop for that locale.item_one / item_other, ICU {count, plural, ...}) count as one
logical key for the missing/orphan check; don't flag a plural form as orphan just
because the default locale collapses plural forms differently.defineMessages,
<FormattedMessage defaultMessage="...">) have no default-locale file to diff against
for missing/untranslated: for those, Step 3's hardcoded-string scan is the primary
check, and Step 2 only runs on the non-default locale files that do exist.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
i18n, localization, translation-check, locale-diff, hardcoded-strings
52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenalOther plugins' skills for the same job