Prerequisites
To get the most out of this guide, you’ll need to:emails/welcome.jsx
Internationalization with React Intl
React Intl is a library for internationalization and localization that provides a way to format messages in different languages.1. Create messages for each locale
For each locale, create a new JSON file containing the content of the email in that locale.Example
2. Update the email props
Add thelocale prop to the email template, interface, and test data.
emails/welcome.jsx
3. Update the email template
In the email template, remove the hardcoded content and usecreateIntl to format the email message strings.
emails/welcome.jsx
4. Update any email calls
When calling the email template, pass thelocale prop to the email component.