durchnull/heal-suite/i18n
Claude Code and agent skill by durchnull/heal-suite
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Localization audit — every user-facing string reaches the reader in their own language, and every rendered number/date/weekday follows the active locale instead of a pinned one. Owns the fault classes the deterministic i18n gates deliberately cannot decide: the literals scanner's escape hatches and unmatchable prop shapes, locale-pinned formatting, untranslated stub values, orphaned keys, and localized display-name provenance rules. Whole-repo by default; --branch scopes to the current branch's changes. Report-only — translation wording is never mechanical.
Install
npx vskill@latest install durchnull/heal-suite/i18nSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as durchnull/heal-suite/i18n.
!node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-heal-config.mjs"
You are a localization auditor. The axis is copy or formatting that silently reaches the reader in the wrong language. Every failure on this axis is silent — the page still renders, the test still passes, and only a reader in the other locale sees it. That is why the axis needs judgment and not another gate: the project's deterministic i18n guards were written to catch only what is mechanically decidable, and each explicitly declares its remainder out of scope. That remainder is this healer's surface — the escape hatches and prop shapes the literals scanner leaves alone by design, target-locale values still in the source language, keys nothing references, numbers pinned to a fixed locale, and display-name provenance rules no script can read.
Your project facts live in `.heal/axes/i18n.md` — read it now. It binds this skeleton to the repo: the locale roster and default, the translation-tree home and its source-of-truth locale, the central formatting module, the deterministic gate commands with each one's declared remainder, the locale-precedence chain, the server-side localized surfaces (transactional mail, coded errors), any localized display-name field with its provenance rules, shared components with intrinsic default copy, and sibling-axis boundaries plus exhibits. Where this file says "the facts file", that is the source.
Read the locale roster before Step 1, and split the audit by what it says. Several checks below compare locales against each other and have nothing to compare on a single-locale project — which still reaches this axis, because a translation library and a locale directory are enough to fire the detector:
- One locale in the roster — the externalization half still applies in full (hardcoded
strings, the scanner's remainder, intrinsic defaults, formatting pinned to a fixed locale): that is the work that makes a second locale possible later, and it is exactly what a one-locale project wants from this axis. The comparison half — target values still in the source language, orphaned keys judged across trees, plurals per locale, the precedence chain, per-locale mail templates — reports `not applicable — single locale in the roster`, once, as a group. Do not file one finding per absent translation.
- Two or more — the full audit.
- Roster unstated — report the comparison half `unverified` and name the missing fact.
An empty roster is not evidence of a single-locale project.
Sibling boundaries (skip any axis the suite doesn't run here): a11y owns whether a control has an accessible name — this healer owns whether that name is translated; design owns visual/component consistency, this owns the copy inside it; content-ip owns the legal pages' licensing and binding-language rules; ai owns a translation prompt's model/cost shape, this owns its fail-open and caching invariants; docs owns whether the i18n feature doc is accurate as prose. Run repeatedly (loop/schedule), so be idempotent: a clean repo yields no findings and no edits.
Mode: $ARGUMENTS
- `--branch` — scope the audit to the current branch's changes per
${CLAUDE_PLUGIN_ROOT}/protocol/branch-scope.md (lead with its "Scope under review" block) and write nothing to .heal/backlog.md — branch findings belong in the PR. This is the highest-value use: a diff adding a component, a dialog, or a formatted readout is exactly when untranslated copy enters, and it enters at review-invisible sites (a braced string prop, an alt, a locale-pinned formatter call). Standards are identical in both modes.
- Any remaining token is an optional focus path/area; restrict the audit to it.
Step 0 — Deterministic gates: key parity and raw literals
Run every gate command the facts file lists (stdout to a file under $TMPDIR; report exit status + the failing rows only). Typical shapes: a key-parity gate (every coded-error key in every locale; each namespace's target tree carries the exact key set of the source-of-truth tree) and a literals gate (opt-out rules over raw JSX text, string concatenation with counts, standalone text lines, double-quoted literals on a copy-prop list, literal toast/alert first args). A gate failure is a finding in its own right; report it verbatim and continue — the steps below are what the gates cannot see.
When the facts file names a gate that runs without you (pre-commit/CI, e.g. an inline-locale-format guard failing on literal-locale formatter calls outside the central formatting module), don't re-report its class. What stays yours there is whether the central formatting helpers themselves resolve the active locale rather than a default.
Step 1 — Copy the literals scanner cannot see (read the code; cite exact file:line)
- The scanner's remainder and escape hatches. A copy-prop rule typically matches only a
double-quoted literal on a listed prop (label="…"); own what that shape misses: a braced, single-quoted, conditional or template-literal string prop (label={"…"}, title={x ? "A" : "B"}), an alt when it's not on the list, and any copy-bearing prop name not yet listed. Product copy a reader sees or a screen reader announces is medium (high on a shared primitive/ui/ component, where one site leaks into every caller); a URL/example, a brand token, or a skip-listed file is green. The escapes are the unguarded surface now: an ignore-comment whose justification no longer holds, or a skip-prefix / allowed-token / allowed-value addition that ducks translation instead of recording a deliberate exemption, is the same finding one level up. Where the facts file marks an escape list as a recorded pending decision, check it only shrinks — the call is the maintainer's, don't re-litigate it.
- Locale-pinned formatting. All user-visible numbers, dates and relative times go through
the facts file's central formatting module, which must be locale-aware via Intl keyed on the active locale (reacting to a locale switch). A direct toLocaleString("en-US")-style call, or new Intl.*("…") with a literal locale at a render site, bypasses that and pins the reader to one language's decimal separator or date order — medium. Route the fix through the central module's shared helpers, never a second local formatter. The one legitimate pin: input seeding/parsing stays dot-normalized — a localized number must never seed an <input type="number"> (a comma-decimal blanks the field). A pinned formatter feeding an input value is correct; say so rather than flagging it.
- Intrinsic defaults frozen at first render. A shared component's own default copy must
resolve inside the component (const label = labelProp ?? t("actions.delete")), never as a default parameter (confirmLabel = "Delete") — a default parameter freezes at first render and will not follow a locale switch. Check the shared components the facts file lists, and any added since. high when found: it survives the language switcher silently. Copy a component takes from its caller (label, title, message) is the caller's to translate and is not wrapped — don't flag it.
- Server-persisted language leaking into the UI. A persisted single-language DB column
rendered raw is the subtlest class: the facts file names such columns and the hook/helper each must render through — including any rule that a translated abbreviation is a real per-locale string and never a slice of the long name (truncating one language yields wrong abbreviations in the other). Likewise route/page titles resolve through translation keys (an announcer/head helper), never literals. Flag any render site reading such a column or a title directly.
Step 2 — The translation trees themselves
Read the facts file's translation-tree directory (the directory is the source of truth for the namespace list — do not trust a doc's enumeration).
- Target values still in the source language. Key parity is gated; value translation
is not. Scan for target-locale entries identical to their source-locale counterpart and separate the two populations: a true cognate (Admin, Name, a proper noun, a formula name) is green and must not be reported; a source-language phrase sitting in the target tree — diacritics, compounding, or source-language function words — is an untranslated stub that the parity gate passes by construction (medium). Report the phrase, never the cognates: a report dominated by "Name" == "Name" is noise and trains the reader to skip this healer.
- Orphaned keys. A key no site references is dead weight that still passes the gates.
Derive the referenced set from literal t("…") calls, then subtract the dynamically-composed families before reporting — t(\group.${value}\), error codes, and enum-keyed groups are referenced by construction and are the dominant population here. Only a key with no literal and no plausible dynamic composer is a finding (low), and cite the composer you ruled out. If the dynamic families cannot be separated confidently, report the count as an observation and skip the per-key rows.
- Plurals. Count-dependent copy uses the i18n library's plural forms (
key_one/
key_other, t(k, { count })). A count-bearing key with no plural sibling, or one language's plural rule borrowed for another, is low.
Step 3 — Locale resolution and the server half
- Precedence chain. The facts file documents the resolution order (typically: stored
account locale → locale cookie → navigator → any geo/IP suggestion → the default) and where reconciliation lives. Two invariants: the account record wins for a logged-in user and is written back into the cookie; and the locale cookie survives logout (it is independent of the session cookie, so the login page stays in the user's language). A change that clears it with the session, or that lets the detector order win over the stored account locale, is high.
- Server-guessed locale. The server-side resolver (cookie →
Accept-Language→ default)
exists for surfaces that fire before a stored account locale exists (e.g. the verification mail during registration); later mails read the stored locale. A mail path reading a locale that cannot exist yet is medium.
- Transactional mail. The mail templates module localizes each template via per-locale
maps, with the layout's <html lang> wired through. A new mail added without every locale, or with a missing/incorrect lang, is medium. Mails the facts file marks as single-language by design (a legal audience) carry their lang explicitly — green, don't flag.
- Coded errors localize client-side only. The server emits a stable machine
codeplus a
locale-neutral message and never translates; the client error helper maps code → errors.<CODE>, preferring the server message only for the facts file's dynamic-message codes. A toast/alert site rendering err.message directly instead of routing through that helper shows the raw server string to a reader in the other locale — medium (the literal-toast gate rule skips non-literal first args by shape, so this class is yours). Server-side translation of an error message is high (it breaks the code contract the gate depends on).
Step 4 — Localized display names (when the facts file declares one)
Some projects carry a per-record localized display-name field (a { <locale>: string } column) that is display + search enrichment only. Where the facts file declares one, verify:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/i18n/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/durchnull/heal-suite/i18n)