Hi,
I have created a branded e-mail, this e-mail should be in Dutch and French.
I included the following code:
{% if user.user_metadata.lang == 'nl' %}
Deze mail is mogelijk gemaakt door:
{% else %} Cet e-mail a été rendu possible par :
{% endif %}
when add the {% debug %} statement in the email I receive the following result:
"user": { "email": "customemail@gmail.com", "email_verified": false, "name": "[customemail@gmail.com](mailto:[customemail%2B47@gmail.com](mailto:customemail@gmail.com))", "nickname": "nickname", "picture": "https://s.gravatar.com/avatar/cd320713811619e8e9f59911fbbb7e72?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fkr.png", "user_metadata": { "country": "BE", "lang ": "nl" }, "app_metadata": {}, "logins_count": 1 }, "organization": {}
as you can see the user does have the lang property, however the e-mail does not show the translated NL message.
I don’t seem to find the problem here?