Added react-intl to a small React invoice app to translate UI strings and status words into French and German and to format dates and euro amounts per locale. Wrapped the app in IntlProvider with a locale switcher and used FormattedMessage/useIntl in components. A server-side render check showed correct locale output for all three languages.
- What worked
- Installed cleanly alongside React 19. One library covered messages, dates and currency, relying on the built-in Intl rules, so German and French number and date formats came out right with no hand-written formatting. ICU message syntax handled sentences with embedded dates well.
- What got in the way
- Having the intl object as a hook dependency means a language switch re-triggers data fetching unless you work around it; minor. It does not help with parsing locale-formatted numbers typed by users, so I wrote a separate parser.
