/design-engine:internationalization-and-rtl-designfrom design-engine
Guides i18n and RTL design for UIs and documents, covering locale-aware layout, direction-agnostic CSS, string expansion, pluralization, and formatting. Use when a project must support multiple languages or scripts.
Ships in design-engine. 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.
This skill makes a Chwezi artifact survive translation and direction change without a redesign. It treats locale (script direction, string length, number/date/currency format, font coverage) as a design constraint present from the first layout decision — not a late-stage retrofit. The cheapest i18n is the layout that was never hard-coded to English-LTR in the first place.
Internationalization (i18n) is the engineering/design work that makes localization possible; localization (l10n) is the per-locale translation/adaptation. This skill owns i18n: the direction-agnostic, length-tolerant, locale-formatted layout. It co-activates with every group because direction and expansion touch grids, type, components, forms, and copy alike.
dir="rtl", bidirectional/bidi text, mirroring, logical CSS
properties, string/translation expansion, overflow/truncation in another language, locale
number/date/currency/percent formatting, pluralization, ICU MessageFormat, or lang.01-typography-and-fonts/font-selection-and-pairing.10-content-design-and-ux-writing/ux-writing-and-microcopy
(this skill sizes the space a string needs and formats data, it does not write copy).01-typography-and-fonts/*
(this skill names the coverage requirement; that group owns the file/licence).03-layout-grid-and-composition/responsive-and-adaptive-layout
(though string expansion is a sibling cause of overflow — cross-reference it).accessibility-wcag-2-2-compliance (this skill
cites it for lang/dir and reflow, but does not own the audit).| Input | Supplied by | Required? | Why |
|---|---|---|---|
| Target locales and scripts | Product/localisation owner | yes | Defines direction and coverage |
| UI or document flow and strings | Design/content team | yes | Exposes expansion and bidi risks |
| Formatting and font requirements | Domain and typography owners | yes | Covers data and glyph behaviour |
Apply the direction, expansion, formatting, and verification phases below. Stop release when a target locale cannot complete a critical task or required script coverage is missing.
references/string-expansion-budgets.md.<html lang="ar" dir="rtl"> (or dir="auto"
where mixed). The lang attribute is also an accessibility requirement (WCAG 3.1.1) —
see accessibility-wcag-2-2-compliance and doctrine/references/wcag-2.2-criteria.md.margin-left →
margin-inline-start, padding-right → padding-inline-end, left: → inset-inline-start,
text-align: left → text-align: start, float: left → float: inline-start. Logical
properties flip automatically with dir; physical ones do not. This single discipline does
~80% of RTL mirroring for free. See references/rtl-mirroring-rules.md.references/rtl-mirroring-rules.md — getting this wrong is
the #1 amateur RTL mistake (mirroring a play button or a line chart).<bdi>, unicode-bidi: isolate, or the
Unicode isolate marks — or punctuation and digits will jump to the wrong end.08-motion-and-interaction.references/string-expansion-budgets.md — never a
single flat "+30%" guess, which under-budgets buttons and over-budgets paragraphs.03-layout-grid-and-composition/responsive-and-adaptive-layout.title; never truncate so hard the label is ambiguous. Prefer
wrapping. Test with the longest budgeted string AND a pseudo-localized string.[!!! Ŝéttîngs ñññ !!!] —
accented to expose missing Unicode handling, bracketed to expose clipping, padded ~+40% to
expose tight boxes. This catches most i18n layout bugs with zero translation cost."You have " + n + " items". Handle plurals with ICU plural categories (languages have
1–6 plural forms, not just one/many).Intl.NumberFormat / Intl.DateTimeFormat (web), ICU/CLDR-backed APIs elsewhere.
Decimal/grouping separators, date order (DMY vs MDY vs YMD), 12/24-hour, currency symbol
position, and digit shaping (Arabic-Indic digits) are all locale-driven. See
references/string-expansion-budgets.md §"Formatting that changes by locale".1 234,56 € vs $1,234.56 vs ١٬٢٣٤٫٥٦. Show the
ISO code (USD/EUR/UGX) where ambiguity matters. Never assume $ = USD.01-typography-and-fonts/font-selection-and-pairing and doctrine/references/font-groups-and-usage.md.
Watch line-height: Arabic and Devanagari need more vertical space than Latin.examples/rtl-before-after.md as the
template so the rationale survives handoff.margin-left, left:, text-align: left) — guarantees a
broken RTL layout and a full re-edit later. Logical properties from day one instead.references/rtl-mirroring-rules.md."Deleted " + n + " files" is untranslatable;
word order and plural rules break. Use ICU MessageFormat with plural.MM/DD/YYYY, $ hard-coded, , decimal
assumed. Use Intl/CLDR. Forgetting Arabic-Indic digit shaping.| Output | Consumer | Evidence / acceptance |
|---|---|---|
| Locale and direction matrix | Product and localisation teams | Script, direction, formats, and exceptions recorded |
| RTL/expansion decision sheet | Designer and engineer | Mirror, no-mirror, bidi, and expansion per element |
| Localised-flow evidence | QA and accessibility | Real RTL, expansion, CJK, and pseudo-locale results |
lang/dir, mirrored where
appropriate, bidi-isolated where needed) that flips by changing one attribute.design-qa-and-pre-launch-review gate.examples/rtl-before-after.md for the required element-by-element decision record.| Condition | Decision | Wrong-choice failure |
|---|---|---|
| Element follows reading or navigation flow | Mirror it in RTL | Flow feels reversed or inconsistent |
| Element represents time, code, numbers, brand, or physical reality | Do not mirror; isolate if needed | Meaning or identity is corrupted |
| Short translated control expands heavily | Wrap or provide flexible inline size | Label clips or becomes ambiguous |
| Locale rules differ | Use CLDR-backed platform formatting | Dates, amounts, or plurals are wrong |
Read and locale inspection are required. Editing and execution are allowed only for authorised implementation/testing. Do not invent translations or approve linguistic quality without a qualified locale reviewer.
Without translations, use expansion budgets and pseudo-localisation, marking language quality unverified. Without target-locale rendering, return a conditional decision sheet and test plan rather than a pass.
examples/rtl-before-after.md — a real worked LTR→RTL conversion of an Arabic e-commerce
product screen (header, search, breadcrumb, product card, rating, price, qty stepper, reviews,
carousel), logging for each element whether it mirrors, stays put, or needs bidi isolation —
and the reasoning behind each decision. Use it as the template for any RTL conversion.doctrine/design-doctrine.md — the cross-cutting
charter; §3 places this skill in 00-cross-cutting-ops-qa-a11y (co-activates with every group).
The anti-slop §2 also governs font choice for non-Latin scripts — never fall back silently to a
banned default just because a script is "hard".doctrine/references/wcag-2.2-criteria.md
— lang of page/parts (3.1.1/3.1.2) and reflow at 320px/200% (1.4.10/1.4.4), which RTL and
expansion both stress.doctrine/references/font-groups-and-usage.md
— script coverage and pairing for non-Latin fonts.references/rtl-mirroring-rules.md — the definitive what-mirrors / what-does-NOT-mirror table,
logical-property mapping, and bidi-isolation recipes.references/string-expansion-budgets.md — real per-language, per-length expansion percentages,
and the locale-formatting (number/date/currency/percent) reference.references/cultural-adaptation-beyond-translation.md — load when entering a new culture or
community, not only a new language: icon, colour, imagery, name, form, mapping and trust audit,
East African CLDR formatting facts (UGX, KES, TZS, RWF), and local-reviewer sign-off.01-typography-and-fonts/font-selection-and-pairing (script coverage),
03-layout-grid-and-composition/responsive-and-adaptive-layout (overflow is a sibling problem),
08-motion-and-interaction (mirrored motion), and accessibility-wcag-2-2-compliance
(lang/dir, reflow). Enforced one last time by design-qa-and-pre-launch-review.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionnpx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine