i18n-review
Skill1 starsChanged 7 months agoMITView on GitHub
Audit code and UI for internationalization correctness - string extraction, pluralization, dates/numbers/currencies, RTL support, and locale-aware sorting. Use when the user asks for an i18n review, localization audit, or wants to make an app translation-ready.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- shinzoxD/knackboxtheir own version, first seen Jul 10, 2026
- dtsong/agentic-counciltheir own version, first seen Jun 10, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- dtsong/agentic-council★ 0same name
- shinzoxD/knackbox★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository50 other files it gives its agents.
- accessibility-reviewSkill
- adr-authorSkill
- api-designSkill
- architecture-reviewSkill
- caching-strategySkill
- changelogSkill
- ci-cd-pipelineSkill
- codebase-explorationSkill
- code-reviewSkill
- code-style-guideSkill
- context-engineeringSkill
- conventional-commitsSkill
- cost-optimizationSkill
- database-migrationSkill
- data-privacy-reviewSkill
- debuggingSkill
- dependency-updateSkill
- deprecation-migrationSkill
- error-handlingSkill
- feature-flag-rolloutSkill
- filament-resource-designSkill
- flux-ui-patternsSkill
- git-workflowSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- inertia-patternsSkill
- laravel-ai-featuresSkill
- laravel-eloquent-performanceSkill
- laravel-queue-designSkill
- laravel-testingSkill
- livewire-component-designSkill
- llm-feature-designSkill
- observabilitySkill
- onboarding-docSkill
- performance-budgetSkill
- pr-descriptionSkill
- primevue-patternsSkill
- refactoringSkill
- release-checklistSkill
- resilience-patternsSkill
- runbook-authorSkill
- security-auditSkill
- spec-writingSkill
- task-breakdownSkill
- tech-debt-triageSkill
- test-writingSkill
- threat-modelingSkill
- using-elyra-skillsSkill
- vue-component-patternsSkill
The file
Files
i18n Review
The goal: a translator can ship a new locale without touching code, and the result is correct for native speakers, not "English with words swapped."
When to use
- "Review X for i18n / localization"
- "Audit translation readiness"
- "Make this app translatable"
- "Add support for
<locale>"
Procedure
- Identify the framework —
i18next,react-intl,vue-i18n,Laravel __(),gettext,Rails I18n, custom? Match existing conventions. - Walk the checklist below
- Group findings by severity
Checklist
String extraction
- No hardcoded user-facing strings in templates, components, or controllers
- Strings live in translation files (
en.json,messages.po,lang/en/…) - Translation keys are stable identifiers, not the English text itself (
auth.login.titlenot"Sign in") - Keys aren't constructed dynamically (
t('errors.' + code)defeats static extraction — use a switch with explicit keys instead) - No concatenated sentences:
t('hello') + ' ' + name→ use interpolation:t('hello_name', {name}) - No HTML embedded in translatable strings — use placeholders or rich-text helpers
- Plurals use the framework's plural helper, not
if (n === 1)
Plurals
Plural rules vary wildly. English has 2 forms; Polish has 4; Arabic has 6. Don't fake it:
// ❌ Don't
const msg = count === 1 ? '1 item' : `${count} items`;
// ✅ Do
t('item_count', { count })
// en.json: { "item_count_one": "{{count}} item", "item_count_other": "{{count}} items" }
// pl.json: { "item_count_one": "...", "item_count_few": "...", "item_count_many": "...", "item_count_other": "..." }Dates, numbers, currencies
- No hardcoded date formats (
YYYY-MM-DD) for display — useIntl.DateTimeFormator framework helper - Numbers formatted with locale separators (
1,234.56vs1.234,56vs1 234,56) - Currencies formatted with
Intl.NumberFormat(locale, {style:'currency', currency}), never by string concat ('$' + amount) - Currency code stored, locale-formatted on display
- Time zones explicit — store UTC, display in user's TZ
- Week start day not hardcoded (Sunday vs Monday vs Saturday varies)
Text direction (RTL)
- Layout uses logical properties:
margin-inline-startnotmargin-left,padding-inline-endnotpadding-right dir="rtl"flips the layout correctly (test with Arabic, Hebrew, or?dir=rtl)- Icons that imply direction (arrows, back/forward) flip in RTL
- Numbers and code blocks stay LTR even in RTL contexts
- No
text-align: leftwhen you mean "start" — usetext-align: start
Sorting & collation
- Lists sorted with
Intl.Collator(locale), not byte-wise /Array.sort() - Case-insensitive comparisons use
localeComparewith proper options - Search/filter is accent-insensitive where appropriate (
sensitivity: 'base')
Input
- Name fields accept unicode (no
[a-zA-Z]+validation) - Email validation allows internationalized domains
- Phone number format not hardcoded to one country (use
libphonenumberor similar) - Address forms don't assume US-style state/zip
- Long words / long translations don't break layout (German is famously verbose)
Tooling
- Linter / extractor rule prevents new hardcoded strings (
eslint-plugin-i18next,i18n-ally,phpcsrules, …) - CI fails if translations are missing keys (or warns with a baseline)
- Locale fallback chain is explicit (
fr-CA → fr → en) - Language switching doesn't require full reload (where the framework supports it)
Quick greps
# Hardcoded English strings in templates (heuristic)
grep -RInE '>[A-Z][a-z]+ [a-z]+' --include='*.{vue,jsx,tsx,blade.php,erb}' . | head
# Concatenated translations
grep -RInE "t\([^)]+\)\s*\+|i18n\.[a-z]+\([^)]+\)\s*\+" --include='*.{js,ts,jsx,tsx,vue}' .
# Hardcoded currency symbols
grep -RInE "['\"\`]\\\$\{|\\\$[0-9]|'\\\$'" --include='*.{js,ts,jsx,tsx,vue,blade.php}' .
# Physical CSS properties that should be logical
grep -RInE 'margin-(left|right)|padding-(left|right)|text-align:\s*(left|right)' \
--include='*.{css,scss,vue,jsx,tsx}' .
# Date format strings that look hardcoded
grep -RInE "format\(['\"](YYYY|DD|MM)" --include='*.{js,ts,jsx,tsx,vue}' .Output format
## i18n review: <scope>
**Framework:** <i18next / vue-i18n / Laravel / …>
**Locales in use:** <en, no, ar, …>
### 🔴 Blockers
- `path/file.tsx:42` — <issue>. **Impact:** <breaks for which locales/users>. **Fix:** <what>.
### 🟠 Major
- …
### 🟡 Minor
- …
### ✅ What's working
- <category> — <one sentence>Severity rubric
| Tag | Meaning |
| 🔴 Blocker | Cannot be translated correctly (hardcoded strings, broken plurals, broken RTL layout) |
| 🟠 Major | Renders incorrectly for many locales (date/number format, sorting, address forms) |
| 🟡 Minor | Polish (long-text overflow, missing locale fallback) |
Anti-patterns
- ❌
t('You have ' + count + ' messages')— broken in every language with grammatical agreement - ❌ Translating button text but baking in
width: 80px(German "Einstellungen" doesn't fit) - ❌ Storing formatted currency in DB (
"$10.00") - ❌ Sorting names with
Array.sort()instead ofIntl.Collator - ❌ Right-aligned designs that "just work" in LTR
- ❌ Assuming names have a first and a last name with a space between
- ❌ Validating names with
[a-zA-Z\s]+ - ❌ Mirror-flipping all icons in RTL (don't flip clocks, logos, media controls)
Useful references
- Unicode CLDR — locale data the world relies on
- W3C Internationalization Activity — specs and guides
- MDN: Intl — browser-native locale APIs
- Falsehoods Programmers Believe About Names
- Falsehoods Programmers Believe About Time
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

