ericrisco/rsc-harness / skills/translation-l10n
translation-l10n
VerifiedUse when adding a second or Nth language to a web or app product — i18n plumbing (string extraction, ICU messages, locale routing), fixing broken plurals or date formats, and making a UI survive other languages through right-to-left layout and text expansion. NOT defining the brand's tone in one language (that is `brand-voice`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.2 KB |
| evals/README.md | markdown | 999 B |
| evals/cases.yaml | config | 2.6 KB |
| references/icu-cookbook.md | markdown | 3.2 KB |
| references/rtl-and-bidi.md | markdown | 3.3 KB |
evals/cases.yaml
View on GitHubskill: translation-l10n
should_trigger:
- prompt: "We need to ship the app in French and Arabic."
why: Core add-a-language request spanning i18n plumbing and RTL — the central use case.
- prompt: "Our plural messages are wrong in Russian and Polish — it always shows the singular form."
why: ICU/CLDR plural categories; non-obvious symptom that points straight at the count===1 anti-pattern.
- prompt: "The German text overflows our buttons and dates still show American format for Spanish users."
why: Text-expansion overflow plus Intl date formatting — two localization symptoms phrased as bugs, not as 'i18n'.
- prompt: "Set up locale routing with next-intl and generateStaticParams for our App Router."
why: Phase 3 locale routing/rendering plumbing — the framework on-ramp this skill owns.
- prompt: "Traducir la app al árabe y montar el glosario para los traductores."
why: Spanish trigger covering the translation workflow, glossary/termbase, and an RTL language.
should_not_trigger:
- prompt: "Define our brand's tone of voice and word bank for our copy."
route_to: brand-voice
why: Inventing voice in one language; this skill moves an existing voice across languages, it does not author it.
- prompt: "How do I fetch data in a Next.js App Router server component?"
route_to: nextjs
why: General framework wiring unrelated to locale; this skill only touches routing where locale-specific.
- prompt: "Plan our hreflang and per-country keyword strategy to rank in Germany."
route_to: seo-geo
why: Multilingual ranking/geo strategy, not translation or i18n plumbing.
- prompt: "Write the English landing page copy for our launch."
route_to: content-engine
why: Authoring net-new source copy; localization translates existing content, it does not write it.
capability:
- scenario: "Add Arabic to our existing React product so it ships correctly."
must_include:
- i18n-before-l10n sequencing (make the code locale-ready before producing translations)
- externalize strings to a catalog with stable namespaced keys; no concatenation of fragments
- ICU plural with correct CLDR categories including the mandatory `other` clause (Arabic uses all six)
- dates/numbers/currency via `Intl.*`, never baked into strings
- RTL via `dir` on `<html>` and CSS logical properties (not CSS `direction`, not `margin-left`)
- translation workflow with glossary + translation memory + MT/LLM post-edit + human review
- pseudolocalization and missing-key testing before hiring translators
- configured fallback locale
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |