/super-review:i18nfrom super-review
Internationalization (i18n) anti-patterns reference loaded by super-review:run. Covers hardcoded strings bypassing i18n, key parity drift across locales, broken pluralization, locale-naive date/number/currency formatting, RTL layout bugs, tests asserting on translated text, missing fallback strategy, concatenated translated fragments, locale-sensitive sorting. Load when the project has any i18n setup (next-intl, react-intl, react-i18next, lingui, @formatjs/*, i18next, vue-i18n, locales/ folder, translation JSONs) and the diff touches client-facing strings or formatting.
Ships in super-review. 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.
None: SKILL.md is the whole skill.
Internationalization anti-patterns for the Frontend / Correctness reviewers in super-review:run. Auto-loaded when an i18n library is in the dep tree (next-intl, react-intl, react-i18next, i18next, lingui, @formatjs/*, vue-i18n) OR a locales/ / messages/ / i18n/ directory exists OR translation JSON/YAML files are in the diff.
Calibration rule: if the project ships in > 1 language, i18n bugs become user-visible regressions. CLAUDE.md / REVIEW.md in the project frequently encodes the exact locales required (e.g. Vellam: pl/en/de) — quote and enforce.
Detection signal: new JSX with literal English/Polish/whatever text where every neighbouring component uses t('...') / <Trans> / useTranslations().
Bad example:
<button>{loading ? 'Wczytywanie...' : 'Zapisz'}</button>
Why it's wrong: Ships in one locale only; users in other locales see the wrong language mid-UI; QA can't catch it without manual locale-switching.
Fix: Use the i18n function: <button>{t(loading ? 'common.loading' : 'common.save')}</button>. Add the key to every locale file in this PR.
Review prompt one-liner: Any user-visible string literal in JSX/HTML in a project with i18n setup — route through the translation function and add the key to every locale.
Detection signal: new key added to one locale file (e.g. pl.json) but not the others (en.json, de.json); locale files have different top-level shapes.
Bad example:
// pl.json:
+ "share.modal.bookClubMode": "Tryb klubu książki"
// en.json: not updated
// de.json: not updated
Why it's wrong: Users in en/de see either the raw key (share.modal.bookClubMode), undefined fallback, or the pl text leaking through — depends on the lib's fallback strategy. Either way, broken.
Fix: Add the key to every locale file. Most i18n libs ship a parity-check CLI (i18next-parser, formatjs extract + compile); wire it into CI.
Review prompt one-liner: For every new translation key, confirm presence + value in every locale file the project declares. Missing key in any locale is a 🟠 FIX-BEFORE-MERGE.
Detection signal: template literal concatenating count + word (${n} books or ${n} książki); ternary n === 1 ? 'item' : 'items' (English-only plural assumption).
Bad example:
const msg = `${count} ${count === 1 ? 'książka' : 'książki'}`;
Why it's wrong: Polish has three plural forms (1 / 2-4 / 5+: 1 książka, 2 książki, 5 książek). Russian/Ukrainian have similar rules. Arabic has six forms. English-style ternary breaks everywhere.
Fix: Use ICU MessageFormat / your lib's plural API:
t('books.count', { count }, {
// ICU: { count, plural, one {książka} few {książki} many {książek} other {książki} }
});
Review prompt one-liner: Any pluralization that uses a ternary or English-only one/many distinction — replace with ICU MessageFormat plural rules.
Detection signal: new Date(x).toLocaleString() without locale arg; n.toFixed(2) for currency; ${amount} PLN hardcoded format; dayjs(x).format('MM/DD/YYYY') US-only format used for global users.
Bad example:
<span>{new Date(order.createdAt).toLocaleString()}</span>
<span>{order.total.toFixed(2)} PLN</span>
Why it's wrong: toLocaleString() without args uses the server's default locale (often en-US) — German user sees American date format. Hardcoded "PLN" defeats users with another currency; decimal separator differs (1,234.56 US vs 1.234,56 DE vs 1 234,56 FR).
Fix: Intl.DateTimeFormat(userLocale).format(d) and Intl.NumberFormat(userLocale, { style: 'currency', currency }).format(n). Resolve userLocale from the request, not the server.
Review prompt one-liner: Any date/number/currency formatted client- or server-side — pass the user's locale explicitly to Intl.* formatters.
Detection signal: template literal joining multiple t(...) calls (${t('hello')} ${userName} ${t('welcome')}); building a sentence from translated parts.
Bad example:
{t('share.invited')} <b>{userName}</b> {t('share.toBook')} <b>{bookTitle}</b>
Why it's wrong: Translators get sentence fragments without grammatical context; many languages need different word order (German verb-final), different declensions of userName/bookTitle, gendered articles depending on the noun. The result reads wrong even when each piece translates correctly.
Fix: Single translation key with named placeholders + ICU rich formatting for emphasis:
t('share.invitedUserToBook', { userName, bookTitle });
// translation: "{userName} został zaproszony do <b>{bookTitle}</b>"
Review prompt one-liner: Any sentence built by concatenating > 1 translation key — replace with a single key + named placeholders.
Detection signal: expect(button).toHaveText('Zapisz') / getByText('Save') / screen.findByText('...') with a translated label rather than a data-testid or stable role.
Bad example:
fireEvent.click(screen.getByText('Zapisz'));
expect(screen.getByText('Pomyślnie zapisano')).toBeVisible();
Why it's wrong: Test breaks every time copy changes; assumes a specific locale was loaded; failure messages are about the wrong layer (locale config) not the bug.
Fix: getByRole('button', { name: /save|zapisz/i }) if you must, or better: getByTestId('save-button') + assert on side effects (mutation called, navigation happened) not on translated text.
Review prompt one-liner: Any test asserting on translated UI text — switch to a stable selector (testid / role + i18n key) or assert behavior, not copy.
Detection signal: i18n config without fallbackLng; fallback set to a non-default language; t('key') ?? 'Save' (English hardcoded fallback in a Polish-first project).
Bad example:
// i18n config
const config = { defaultLocale: 'pl', /* no fallbackLng */ };
// somewhere in code:
const label = t('save') ?? 'Save'; // English fallback in a Polish-first product
Why it's wrong: Missing key shows the raw key path to users (common.save) or a hardcoded English string in a Polish UI — either looks broken / unprofessional.
Fix: Configure fallbackLng: 'pl' (match the default UI language). Remove inline fallbacks; treat missing keys as a CI failure instead.
Review prompt one-liner: Verify fallbackLng is set and matches the default UI language; flag any inline ?? 'English string' fallback.
left/right / margin-left)Detection signal: margin-left, padding-right, text-align: left, border-left, left: 0 in CSS for a UI that ships in Arabic/Hebrew/Farsi; dir="ltr" hardcoded on <html>.
Bad example:
.sidebar { padding-left: 1rem; border-left: 1px solid var(--border); }
Why it's wrong: Sidebar is on the wrong side in RTL locales; padding eats the wrong edge.
Fix: Logical properties: padding-inline-start, border-inline-start, margin-block-end, text-align: start. Set dir per request based on Accept-Language.
Review prompt one-liner: Any CSS using left/right/top/bottom directional properties in a project that may ship RTL — use logical properties (-inline-start / -block-end).
<Detection signal: arr.sort((a, b) => a.name.localeCompare(b.name)) without locale; arr.sort() on user-visible strings; === on user input vs a stored value.
Bad example:
users.sort((a, b) => a.name.localeCompare(b.name)); // uses runtime default locale
Why it's wrong: Sort order differs between Polish (ą after a vs after z) and German (ä ≈ a vs after z depending on phonebook vs dictionary collation); === on 'café' vs user input 'café' (NFD) fails.
Fix: Intl.Collator(userLocale, { sensitivity: 'base' }).compare for sort; String.prototype.normalize('NFC') before any string equality on user-typed text.
Review prompt one-liner: Any sort or equality check on user-facing strings — use Intl.Collator with explicit locale and normalize first.
Detection signal: Backend throws Error('Book not found') and the client renders it raw; HTTP error responses with English message shown directly in the UI.
Bad example:
// backend
throw httpErrorWithCode(404, 'book.notFound', 'Book not found');
// client
toast.error(err.message); // shows "Book not found" in Polish UI
Why it's wrong: Error messages are user-facing too; localizing only happy-path strings creates UX dissonance.
Fix: Backend returns the error code (book.notFound); client looks up the localized message: toast.error(t(errors.${err.code})). Add error keys to every locale file alongside UI keys.
Review prompt one-liner: Any error message displayed to users from server response — confirm client looks it up via i18n key, not raw err.message.
// translations.json (Polish — three plural forms):
{ "books.count": "{count, plural, one {# książka} few {# książki} many {# książek} other {# książek}}" }
// usage:
t('books.count', { count: 5 }) // "5 książek"
Why: Survives every language's plural rules. Single key, no concatenation, translator sees the full grammatical context.
Intl.* formatters with explicit user localeconst fmtCurrency = new Intl.NumberFormat(userLocale, { style: 'currency', currency: order.currency });
const fmtDate = new Intl.DateTimeFormat(userLocale, { dateStyle: 'medium' });
// uses runtime-correct separators, currency symbol position, calendar
Why: Zero hardcoded format strings; correct for every locale automatically; no library required.
# .github/workflows/i18n.yml
- run: npx i18next-parser --fail-on-missing-keys --output 'locales/$LOCALE/$NAMESPACE.json'
Why: Catches drift at PR time, not in production; no human has to remember to add the key to de.json after pl.json.
.sidebar {
padding-inline-start: 1rem;
border-inline-end: 1px solid var(--border);
text-align: start;
}
Why: Same stylesheet works in LTR and RTL; browser handles the flip; no [dir=rtl] overrides needed.
// backend
throw httpErrorWithCode(404, 'book.notFound', 'Book not found'); // English msg is dev fallback
// client
toast.error(t(`errors.${err.code}`));
Why: Locale-correct error messages; backend changes don't drag through every UI; new locales added without backend deploy.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (mattnowdev/super-review) — no native marketplace selected
npx claudepluginhub p/mattnowdev-super-review22 skills in this plugin
/accessibilityAccessibility (WCAG 2.2) review referenceWCAG 2.2 accessibility anti-patterns reference loaded by super-review:run when the diff touches client-facing UI. Covers the new 2.2 criteria (Focus Appearance, Dragging, Target Size, Consistent Help, Redundant Entry, Accessible Authentication) plus the perennial misses — div-as-button, focus management on route/modal change, contrast, label/placeholder confusion, aria-hidden on focusable elements, alt-text discipline. Patterns automated axe/Lighthouse scans miss. Load when `client/`, `app/`, `src/`, `*.tsx`/`*.jsx`/`*.vue`/`*.svelte` files in diff, OR HTML templates touched./audit-selfsuper-review:audit-selfSelf-audit sub-skill for super-review. Reads past super-review comments on a PR (or across multiple PRs in a repo) and audits the audits — surfaces repeated false positives, missed-positive patterns, and proposes concrete skill-prompt edits. Use when the user says "audit super-review", "review the reviews", "what's super-review getting wrong", "/super-review:audit-self", or wants to tune the skill against this team's actual usage history./code-smellsCode-smells review referenceCode-smell catalog (Fowler / refactoring.guru) adapted for PR review. Covers Bloaters (Long Method, Large Class, Primitive Obsession, Long Parameter List, Data Clumps), OO Abusers (Switch Statements, Temporary Field, Refused Bequest), Change Preventers (Divergent Change, Shotgun Surgery), Dispensables (Duplicate Code, Dead Code, Speculative Generality, Comments-as-explanation), Couplers (Feature Envy, Inappropriate Intimacy, Message Chains, Middle Man), plus Flag Arguments, Stringly Typed, Magic Numbers. Load when the diff has a large single-file change (>150 LOC), a new class with >5 methods, function moves across files, or the user explicitly asks for a refactor review./cryptoCrypto review referenceCryptography anti-patterns reference loaded by super-review:run. Covers weak RNG, AES-GCM IV reuse, AES-CBC padding oracles, JWT alg confusion, password-hashing parameters, RSA padding, TLS verification bypass, key separation, secrets in logs. Load when the diff touches `crypto`/`jose`/`jsonwebtoken`/`bcrypt`/`argon2` or auth code paths./dockerfileDockerfile review referenceDockerfile + container-image anti-patterns reference loaded by super-review:run when the diff touches container build files. Covers root-user execution, multi-stage hygiene, build-cache layering, secret handling, base-image pinning, and reproducibility. Load when `Dockerfile`, `Dockerfile.*`, `*.dockerfile`, `docker-compose.yml`, or `.dockerignore` appears in diff./goGo review referenceGo 1.22+/1.23/1.24 anti-patterns reference loaded by super-review:run when the diff touches Go files. Covers goroutine leaks, context propagation, nil-interface traps, error-wrapping, defer-in-loop, range-over-func, weak pointers, and the per-iteration loop variable change. Load when `*.go` files in diff, or `go.mod` / `go.sum` modified.