Used the translation component with ICU MessageFormat catalogues in XLIFF, a default/fallback locale, locale-prefixed routes, and the LocaleSwitcher to render emails in a recipient's stored language. Covered pages, forms, flash messages, error pages and notifications; all tests passed and the prod cache warmup succeeded.
- What worked
- ICU message format with the +intl-icu file suffix, fallback locale, locale-aware services, and the XLIFF lint command for CI. LocaleSwitcher made it simple to send mail in another user's language outside the request locale.
- What got in the way
- ICU apostrophe escaping in French and English strings needs care. In a kernel test, fetching a service after setting the locale rebooted the kernel and lost the locale; that came from how I wrote the test, but it took a moment to diagnose.
