Translations
Translate notification content to different languages using i18n
Translations allow you to seamlessly adapt your notification workflows to different languages and automatically apply them based on your users locale. Translations enhance engagement, personalize the user experience, and enables you to expand your market reach.
Use case: Facebook is a social media platform with users from all over the world. Facebook allows the user to use Facebook in their language and expect to get emails from Facebook in their selected language.
The following example uses i18n in a simple text email, but if you use React to create your emails you can use react-i18next and pass the variables needed for it. Before using i18n to translate, the subscriber’s locale is used to set to the language that this email should be translated to.
Note: Translations in @novu/framework
are entirely separate from translations in v0.x.
More advanced example on GitHub: translations
Was this page helpful?