Locale Variable Not Processed in Email Templates
Last Updated:
Overview
The variable ${{user.profile.locale}} is not processed by the email template. In the preview and the email, the template displays as ${{user.profile.locale}}. This article clarifies why the ${{user.profile.locale}} variable is not processed and provides an alternative solution.
Applies To
Cause
If the user does not select a language and uses the default one, the language selection is considered a null value.
The value will not be picked up from the end-user dashboard, and ${{user.profile.locale}} will not work.
Solution
Use ${{user.locale}} instead, or request the user to select the language in the profile so the value is defined.
When a language is selected by the user, the following message will disappear:
Your default language has been automatically set by your browser. To change your language please edit and save your desired display language.
