Translate notification content to different languages using i18n.
Translations
page from the main navigation and click on the “Add group” button.
i18n
handlebar helper and path to the translated value.
Let’s take a look at the example: {{i18n "marketing.welcome_message"}}
.
i18n
is the handlebar helper that tells Novu that you would like to use the Translations"marketing.welcome_message"
is the path that is composed of the Translation Group identifier marketing
and translation JSON file key welcome_message
de_DE
language German and region Germany.
To update the locale you can use Novu API or any of our SDKs, more information can be found here.
A boyfriend
. Not adding any context will output A friend
.
7 items
{ date: new Date() }