Provides framework-agnostic patterns for building multilingual applications, covering the full i18n pipeline from locale detection through translation rendering. Addresses universal concerns like ICU message formatting, CLDR plural rules, RTL support, and SEO.
When to use: Adding multi-language support, locale-aware formatting, RTL layouts, pluralization, translation management, locale negotiation, multilingual SEO.
When NOT to use: Single-language apps with no internationalization plans, content that never changes locale, purely server-rendered static sites with no dynamic content.
适用于多语言应用程序的与框架无关的国际化 (i18n) 和本地化 (l10n) 模式。涵盖 ICU 消息格式、复数规则 (CLDR)、具有 CSS 逻辑属性的 RTL 布局、区域设置协商和检测策略、SEO hreflang 标签、基于 cookie/标头的区域设置解析以及翻译工作流程管理。 在添加多语言支持、选择 i18n 库、实现复数或性别感知消息、按区域设置格式化日期/数字/货币、处理 RTL 布局、设置区域设置检测、配置 hreflang SEO 标签或管理翻译工作流程时使用。 来源:oakoss/agent-skills。