web-i18n-react-intl
Installation
SKILL.md
React-Intl (FormatJS) Internationalization Patterns
Quick Guide:
FormattedMessagerenders translated text in JSX,useIntlreturns strings for attributes and programmatic use, anddefineMessagesproduces descriptors the FormatJS CLI can extract.IntlProvidersupplies the context, and itsonErroris what separates a missing translation from a real failure. Everypluralandselectneeds anotherbranch. Version boundary: v7.x runs on React 16.6 through 19; v8 and later require React 19.
Detailed Resources:
- examples/core.md — provider setup, FormattedMessage, useIntl, defineMessages,
createIntl, locale switching, types, lazy loading - examples/formatting.md — date, time, number, currency, relative time, list and display-name formatting
- examples/pluralization.md — plural, ordinal, select, nested patterns, per-language categories, ICU escaping
- reference.md — decision trees, ICU syntax tables, API tables, anti-pattern code, checklists