Design i18n design

From Intense-Visions/harness-engineering · View interactive version

Design i18n design is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Designing for internationalization — text expansion, RTL layout, icon cultural sensitivity, date/number/currency formatting, pseudolocalization testing

How to use this skill

Skill file

Internationalization Design

Designing for internationalization — text expansion, RTL layout, icon cultural sensitivity, date/number/currency formatting, pseudolocalization testing

When to Use

Instructions

  1. Design for text expansion from the start. English is one of the most compact major languages. When translated, text expands significantly:

| Source length (characters) | Expected expansion |

| -------------------------- | ------------------ |

| 1-10 | Up to 200% |

| 11-20 | Up to 80% |

| 21-30 | Up to 60% |

| 31-50 | Up to 40% |

| 51-70 | Up to 31% |

| 70+ | Up to 30% |

Short strings expand the most — disproportionately affecting buttons, labels, tab names, and navigation items.

  1. Build layouts with logical properties, not physical directions. Replace all directional CSS with logical equivalents:
  1. Mirror the entire interface for RTL, not just the text. RTL is not text-align: right. It is a complete interface mirror:
  1. Audit every icon and image for cultural sensitivity. Icons that seem universal often carry culture-specific meanings:
  1. Never concatenate strings or embed text in images. String concatenation breaks in every language with different word order:
  1. Format dates, numbers, and currencies using locale-aware APIs. Never hardcode formats:
  1. Design forms that accept international input. Common assumptions that break internationally:
  1. Implement pseudolocalization as a development practice. Pseudolocalization transforms English strings into accented variants that test i18n readiness without real translations. Three levels:

Details

Vertical Text and CJK Considerations

Chinese, Japanese, and Korean (CJK) text introduces unique design challenges:

RTL Implementation Checklist

When implementing RTL support, verify each item:

Number and Measurement Localization

Beyond basic number formatting, consider:

Anti-Patterns

  1. The "We'll Localize Later" Assumption. Building an entire product in English with hardcoded strings, fixed-width layouts, and concatenated text, then expecting localization to be a translation pass. By the time localization begins, hundreds of layout assumptions make expansion impossible without a rewrite. The fix: internationalize from day one. Use logical CSS properties, externalize all strings into resource files, and run pseudolocalization in CI from the first sprint.
  1. The Google Translate Test. Using machine translation to validate i18n readiness. Machine translation produces text that fits in the same space as English (word-for-word translation), missing real expansion. It also masks concatenation issues because it follows English word order. The fix: use pseudolocalization for layout testing and professional translators for final localization. Machine translation is not a substitute for either.
  1. The Flag-for-Language Dropdown. Using country flags to represent language choices. Flags represent countries, not languages. The Spanish flag does not represent 400 million Latin American Spanish speakers. Some countries have multiple official languages (Switzerland has 4, India has 22). The fix: use language names written in their own script — "Deutsch" not "German," "Espanol" not "Spanish" — in a text-based selector.
  1. The Right-to-Left Afterthought. Adding RTL support by applying direction: rtl and text-align: right and calling it done. This misses icon mirroring, shadow direction, animation direction, progress bars, form alignment, navigation hierarchy, and dozens of other spatial elements. The fix: implement RTL using logical properties from the start, test with real Arabic/Hebrew content, and use a native RTL speaker for QA.
  1. Hardcoded Pluralization. Using count === 1 ? "item" : "items". This breaks in Arabic (6 plural forms), Polish (3 forms with complex rules), and even French (zero is singular). The fix: use ICU MessageFormat or Intl.PluralRules, which implements CLDR plural rules for all locales.

Real-World Examples

Airbnb's i18n Design System. Airbnb operates in 220+ countries and 62 languages. Their design system enforces i18n at the component level:

Slack's RTL Support. When Slack added Arabic and Hebrew, they discovered mirroring broke threaded messages: the reply indicator line used hardcoded border-left and margin-left. In RTL, the line appeared on the wrong side, disconnecting replies from parents. They migrated 2,400+ CSS declarations from physical to logical properties over 6 months. The hardest part was custom canvas-rendered elements (emoji picker positioning, rich text cursor behavior) where CSS logical properties do not apply and direction-aware JavaScript was needed.

Mozilla's Pontoon Localization Platform. Mozilla localizes Firefox into 90+ languages. Pontoon enforces i18n best practices at the string level:

WhatsApp's Bidirectional Text Handling. WhatsApp supports mixed-direction text in messages (Arabic user sending a message with an English URL). They use the Unicode Bidirectional Algorithm with explicit directional marks: when the app detects a message starting with an RTL character, it wraps the message in a Right-to-Left Mark (U+200F). Embedded LTR segments (URLs, numbers, brand names) are isolated using First Strong Isolate (U+2068). Without these marks, a message containing "Visit www.example.com" in Arabic reorders URL segments, breaking the link.

Source

Process

  1. Read the instructions and examples in this document.
  2. Apply the patterns to your implementation, adapting to your specific context.
  3. Verify your implementation against the details and edge cases listed above.

Harness Integration

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.