/skillry-frontend-web-design:i18n-locale-parity-reviewfrom skillry-frontend-web-design
Audits locale files for missing keys, hardcoded UI strings, and i18n wiring issues. Supports JSON/PO/ARB formats and next-intl App Router.
Ships in skillry-frontend-web-design. 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.
Skillry 3.0.0 folded the skills below into this one. When a request names one of them or matches its topic, open the listed reference and follow it; the rest of this file stays the default procedure.
| Old skill name | Reference | Use it for |
|---|---|---|
i18n-agent / multilingual-i18n-seo | references/i18n-agent.md | multilingual SEO and i18n end to end: locale registry, BCP47 hreflang and x-default, sitemaps, schema inLanguage, translation playbook, CI check scripts |
localize-anything | references/localize-anything.md | project localization workflow: surface discovery, glossary and translation memory, structural checks, independent language review, release evidence |
localization-guide / Localization Writer | references/localization-guide.md | adapting copy for a target market: idioms, formality register, cultural references, dates, units, currency, reviewer notes |
Conduct a structured audit of every locale file in the project (JSON, PO, ARB), compare key sets across all active languages (TR/EN/DE), surface missing translations, detect hardcoded UI strings in JSX/TSX that bypass the i18n layer, and validate next-intl App Router wiring. Surface concrete evidence from actual files — never from assumptions. This skill directly supports the project's "UI Language and Theme Parity" behaviour rule: every user-facing string must exist in all active locales and be served through the i18n layer.
# Identify the i18n library and message format
grep -r "next-intl\|react-i18next\|i18next\|vue-i18n\|@formatjs" package.json pnpm-lock.yaml 2>/dev/null | head -20
# Locate all locale/messages directories
find . -type d -name "messages" -o -type d -name "locales" -o -type d -name "i18n" \
| grep -v node_modules | grep -v ".next"
# List all locale files
find . -type f \( -name "*.json" -o -name "*.po" -o -name "*.arb" \) \
-path "*/messages/*" -o -path "*/locales/*" \
| grep -v node_modules | grep -v ".next" | sort
Confirm which locales are active (e.g. en, tr, de) and which file is the source of truth (typically en.json).
For JSON locale files (next-intl, i18next flat/nested):
# Flatten all keys (supports nested objects) — requires Python 3
python3 - <<'EOF'
import json, sys
from pathlib import Path
def flatten(obj, prefix=""):
keys = []
for k, v in obj.items():
full = f"{prefix}.{k}" if prefix else k
if isinstance(v, dict):
keys.extend(flatten(v, full))
else:
keys.append(full)
return keys
locale_dir = Path("messages") # adjust if needed
files = {p.stem: set(flatten(json.loads(p.read_text()))) for p in locale_dir.glob("*.json")}
all_keys = set().union(*files.values())
locales = sorted(files)
print(f"{'KEY':<60} " + " ".join(f"{l:>6}" for l in locales))
for key in sorted(all_keys):
row = " ".join((" OK" if key in files[l] else "MISS") for l in locales)
if "MISS" in row:
print(f"{key:<60} {row}")
EOF
# Quick count per locale
for f in messages/*.json; do echo "$f: $(python3 -c "import json,sys; d=json.load(open('$f')); print(len(list(d.keys())))")"; done
For PO files:
# Compare msgid counts across .po files
for f in locales/**/*.po; do echo "$f: $(grep -c '^msgid ' "$f") msgids"; done
msgmerge --no-fuzzy-matching -U locales/tr/messages.po locales/en/messages.po # dry-run parity check
# JSX/TSX text nodes that are plain strings (not wrapped in t() or <Trans>)
# Pattern: >SomeText< or >Some text with spaces< — high signal
grep -rn --include="*.tsx" --include="*.jsx" \
'>[A-Z][a-zA-Z ]\{4,\}<\|>[A-Z][a-zA-Z ]\{4,\}$' \
src/ app/ components/ \
| grep -v "//\|{t(\|<Trans\|{_\|aria-label\|placeholder\|title=" \
| head -40
# Attribute strings that should be translated (placeholders, aria-labels, titles)
grep -rn --include="*.tsx" --include="*.jsx" \
'placeholder="[A-Z][a-zA-Z ]\{3,\}"\|aria-label="[A-Z][a-zA-Z ]\{3,\}"' \
src/ app/ components/ | head -30
# Alert/toast/error messages hardcoded as English strings
grep -rn --include="*.ts" --include="*.tsx" \
'toast\.\(success\|error\|info\).*"[A-Z]\|throw new Error.*"[A-Z]\|console\.error.*"[A-Z]' \
src/ app/ | head -30
# Confirm [locale] segment exists in App Router
find app -type d -name "\[locale\]" | head -5
# Check middleware.ts exports intlMiddleware / createMiddleware
grep -n "createMiddleware\|withLocale\|intlMiddleware\|locales\s*:" middleware.ts 2>/dev/null
# Confirm next.config supports i18n or next-intl plugin
grep -n "withNextIntl\|i18n\|locales" next.config.* 2>/dev/null
# useTranslations usage in Server Components
grep -rn "useTranslations\|getTranslations" app/ --include="*.tsx" | head -20
# Check locale is passed correctly in layout
grep -n "locale\|NextIntlClientProvider\|messages" "app/[locale]/layout.tsx" 2>/dev/null \
|| grep -rn "NextIntlClientProvider" app/ --include="*.tsx" | head -10
# Find keys using ICU plural/select syntax
grep -rn "plural\|select\|selectordinal" messages/ --include="*.json"
# Find number/currency/date format usages
grep -rn "useFormatter\|formatNumber\|formatDate\|Intl\.NumberFormat\|Intl\.DateTimeFormat" \
src/ app/ --include="*.tsx" --include="*.ts" | head -20
# Verify plural forms are consistent across locales (TR has 1 form, DE/EN have 2)
python3 - <<'EOF'
import json, re
from pathlib import Path
for p in Path("messages").glob("*.json"):
text = p.read_text()
plural_keys = re.findall(r'"([^"]+)":\s*"\{[^}]+,\s*plural', text)
if plural_keys:
print(f"{p.stem}: {len(plural_keys)} plural keys — {plural_keys[:5]}")
EOF
# Confirm default locale redirect behaviour in middleware
grep -n "defaultLocale\|localePrefix\|pathnames" middleware.ts i18n.ts i18n/config.ts 2>/dev/null
# Look for hardcoded language in href/Link
grep -rn 'href="/en/\|href="/tr/\|href="/de/' app/ src/ --include="*.tsx" | head -20
t(), <Trans>, or equivalent.placeholder, aria-label, title, alt attributes use translation keys, not raw strings.toast, alert, throw new Error messages are either translated or in a dedicated error-key namespace.[locale] dynamic segment exists in app/ and middleware exports locale routing config.NextIntlClientProvider receives messages prop in the root layout.useTranslations (client) and getTranslations (server/async) are used correctly — not swapped.one/other, DE: one/other, EN: one/other).formatNumber / formatDate are used instead of raw Intl calls in components, so locale is consistent./en/, /tr/, /de/ paths in <Link> or router.push().defaultLocale is set and the middleware redirects / to the correct locale..gitignore exclusion for secrets but not excluded from version control themselves.# Full key parity delta (missing keys per locale)
python3 - <<'EOF'
import json
from pathlib import Path
def flatten(obj, prefix=""):
keys = []
for k, v in obj.items():
full = f"{prefix}.{k}" if prefix else k
if isinstance(v, dict):
keys.extend(flatten(v, full))
else:
keys.append(full)
return keys
locale_dir = Path("messages")
files = {p.stem: set(flatten(json.loads(p.read_text()))) for p in locale_dir.glob("*.json")}
all_keys = set().union(*files.values())
for locale, keys in files.items():
missing = sorted(all_keys - keys)
if missing:
print(f"\n=== {locale.upper()} MISSING {len(missing)} keys ===")
for k in missing:
print(f" {k}")
EOF
# Hardcoded string grep — save to file for review
grep -rn --include="*.tsx" --include="*.jsx" \
'>[A-Z][a-zA-Z ,!?.'"'"']\{5,\}<' \
app/ src/ components/ \
| grep -v "//\|{t(\|<Trans\|className\|data-\|import " \
> /tmp/hardcoded-strings.txt && wc -l /tmp/hardcoded-strings.txt
# Locale file sizes
wc -l messages/*.json
# next-intl version
node -e "const p=require('./node_modules/next-intl/package.json'); console.log('next-intl', p.version)"
Produce a structured report with:
file:line | raw string | suggested key name, sorted by file.[locale] segment, NextIntlClientProvider, getTranslations vs useTranslations usage.messages/ path is correct before running.Done means: the parity matrix covers all active locales, every missing key is listed with its English reference, every hardcoded string has a file:line entry, next-intl wiring is confirmed or flagged, and the report closes with a prioritised fix list. The "UI Language and Theme Parity" behaviour rule is satisfied when the parity delta reaches zero and no hardcoded strings remain.
examples/i18n-agent/astro-minimal/README.md (opens in a new tab)examples/i18n-agent/astro-minimal/src/i18n/locale-registry.json (opens in a new tab)examples/i18n-agent/nextjs-app-router-notes.md (opens in a new tab)examples/i18n-agent/sample-audit-report.md (opens in a new tab)references/i18n-agent.md (opens in a new tab)references/i18n-agent/LICENSE (opens in a new tab)references/i18n-agent/checklists/pre-flight.json (opens in a new tab)references/i18n-agent/checklists/production-verify.json (opens in a new tab)references/i18n-agent/checklists/technical-seo.json (opens in a new tab)references/i18n-agent/checklists/translation-quality.json (opens in a new tab)references/i18n-agent/docs/framework-adapters.md (opens in a new tab)references/i18n-agent/docs/glossary.md (opens in a new tab)references/i18n-agent/docs/index.html (opens in a new tab)references/i18n-agent/docs/install-claude-code.md (opens in a new tab)references/i18n-agent/docs/install-cursor.md (opens in a new tab)references/i18n-agent/docs/install-generic.md (opens in a new tab)references/i18n-agent/docs/locale-architecture.md (opens in a new tab)references/i18n-agent/docs/multilingual-seo-checklist.md (opens in a new tab)references/i18n-agent/docs/overview.md (opens in a new tab)references/i18n-agent/docs/translation-playbook.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/web-design-reviewReview built UI: hierarchy, consistency, polish, responsive layout, dashboards, design-system drift, prototypes./accessibility-auditAudit accessibility to WCAG 2.2: semantic HTML, keyboard, focus, contrast, labels, screen readers./landing-page-conversion-reviewConversion: landing pages, offer clarity, trust, CRO, forms, signup and onboarding activation, page copy./next-app-router-rsc-reviewNext.js App Router: server/client component boundaries, caching, streaming, parallel routes, data fetching./design-captureCapture live reference motion, adapt UI components under source license rules, generate fresh exclusive media, and run unslop checks. Use when sourcing or adapting reference site designs.npx claudepluginhub fluxonlab/skillry --plugin skillry-frontend-web-designOther plugins' skills for the same job