Last Updated: Oct 23rd, 2024
Overview
When a language other than English is used by Universal Login via the ui_locales
parameter on the /authorize
endpoint emails like the email verification template at sign-up are sent in English and not the language configured to be used by Universal Login.
Applies To
- Universal Login
- Email Templates
- Language
Solution
There is an item in the opportunity backlog to make this work with no ETA.
For now, the customization can be made in the email template using the syntax below:
{% if user.user_metadata.lang == 'en' %}
<br />
Thanks!
<br />
{% elsif user.user_metadata.lang == 'fr' %}
<br />
Merci!
<br />
{% endif %}
For an example of customizing the email subject of the Change Password Email Template based on the language specified in the user metadata, review the following video: