frontend-i18n · git:20261120.76a1b83 · 2026-11-20 · sha256 5bd6dab11af0ca11

frontend-i18n git:20261120.76a1b83A

Immutable. This exact content never changes and is served at /api/v1/blob/5bd6dab11af0ca11.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_t3kjha6lb3b7mm6p/5bd6dab11af0ca114677ac2730aa6bd91eea006a1530ceb341b679c1a2c99fec.json

Then /plugin install frontend-i18n@markdownregistry-t3kjha6lb3b7mm6p in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: frontend-i18n
description: Extracts hard-coded UI text into translation files and handles plurals, dates, numbers and right-to-left layout for a multi-language frontend.
---

# Frontend i18n

Never translate by hand-editing the UI. Extract, key, format, then verify with a pseudo-locale.

## Steps

1. Detect the existing setup (react-i18next, vue-i18n, next-intl, Angular i18n, FormatJS). Use it. Only if none exists, recommend one that supports ICU messages and ask before installing.
2. Extract strings component by component. Keys are namespaced by feature and describe the role, not the English text: `checkout.submit.label`, not `place_your_order`. Add a short note for translators wherever the meaning is ambiguous ("Save" as a verb, "Order" as a noun).
3. Never concatenate. One whole sentence per message with placeholders: `"Welcome back, {name}"`. Word order differs by language.
4. Plurals use ICU: `"{count, plural, one {# file} other {# files}}"`. Some languages have up to six forms, so never write `count === 1 ? ... : ...`.
5. Format with Intl, not by hand: `Intl.DateTimeFormat`, `Intl.NumberFormat` (currency needs the currency code, not a symbol), `Intl.RelativeTimeFormat`, `Intl.ListFormat`. Store dates in UTC ISO and format at render time.
6. Layout. Use logical CSS properties (`margin-inline-start`, `padding-inline`, `text-align: start`), set `dir` and `lang` on the html element, and mirror directional icons, not logos or numerals.
7. Verify with a pseudo-locale that expands text by 40 percent and adds accents. Fix every clipped or overflowing label.
8. Fallbacks: missing keys fall back to the default language and are logged in development, never shown as raw keys.

## Report

Keys added per file, files with remaining hard-coded text, and anything that needs a translator's judgment.