<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Locale Variable Not Processed in Email Templates

Administration
Okta Classic Engine
Okta Identity Engine

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.

default language

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.


language selected by user 

 

Related References

Loading
Okta Support - Locale Variable Not Processed in Email Templates