# Universal login localization not working

**URL:** <https://community.auth0.com/t/universal-login-localization-not-working/62242>\
**Category:** Get Help\
**Tags:** localization, new-universal-login\
**Created:** [May 5, 2021, 9:15am UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242 "2021-05-05T09:15:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![adeliab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adeliab/32/12951_2.png) [@adeliab](https://community.auth0.com/u/adeliab)\
**Post date:** [May 5, 2021, 9:15am UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/1 "2021-05-05T09:15:10Z")

</div>

Hi, I’m trying to get the localization work for the new universal login. The idea is to display the text in the login page based on the browser’s accept-header.  
From reading this page: [Universal Login Internationalization](https://auth0.com/docs/i18n/universal-login-internationalization) it seems that if I set the languages in the Tenant setting, it should pick up the accept-language header from the request and display the correct language. So what I’ve done is:

1. I’ve enabled the Dutch language in the Tenant Setting
2. I added the nl language in the browser’s accept language setting (I’m using Firefox for testing) - I can see the accept-language header is being passed correctly to the Auth0 login URL

But the login page is still displayed in English. Am I missing something here? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 6, 2021, 4:04pm UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/3 "2021-05-06T16:04:58Z")

</div>

Hi @adeliab,

Welcome to the Community!

I just tested this out and it seems to be working. I noticed that I had to select “Apply and Restart” in the Firefox settings for the changes to take effect.

Tenant settings:

 ![Screen Shot 2021-05-06 at 12.01.46 PM](https://global.discourse-cdn.com/auth0/original/3X/5/e/5e8713853c8f412bc557c20bff7f1cfe5f704523.png)

Firefox settings:

 ![Screen Shot 2021-05-06 at 12.02.07 PM](https://global.discourse-cdn.com/auth0/original/3X/1/6/16d227677f26c96fc2b6a660f24c8ad021102323.png)

Universal Login settings:

 ![Screen Shot 2021-05-06 at 12.04.01 PM](https://global.discourse-cdn.com/auth0/original/3X/0/4/04cc0378cd1b7f8b8c56807b24225e2a2f6b49c8.png)

Resulting login:

 ![Screen Shot 2021-05-06 at 12.04.50 PM](https://global.discourse-cdn.com/auth0/original/3X/b/f/bfbbadebc6655883a2a6ba1baf74151a365842aa.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 10, 2021, 6:56am UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/5 "2021-05-10T06:56:06Z")

</div>

Previous message deleted due to SPAM reasons.

---

<div class="post-metadata">

**Author:** ![adeliab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adeliab/32/12951_2.png) [@adeliab](https://community.auth0.com/u/adeliab)\
**Post date:** [May 10, 2021, 8:13am UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/6 "2021-05-10T08:13:14Z")

</div>

Hi @stephanie.chamblee ,

Thank you for your reply. Initially I changed Firefox’s intl.accept\_languages instead of using the setting. But I saw the accept-language header in the request was correct. I now tried your method as well - by changing the language in the setting and the login dialog is still not translated.

Tenant settings:

 ![afbeelding](https://global.discourse-cdn.com/auth0/original/3X/1/b/1be037a3da48ba129db879b215d59b47c7f04635.png)  
 ![afbeelding](https://global.discourse-cdn.com/auth0/original/3X/8/3/8325ede4c11404dbe942be6ce98b4ea5cbc05071.png)

Firefox settings:

 ![afbeelding](https://global.discourse-cdn.com/auth0/original/3X/0/f/0fa1bb7cafb6a9f97619ff80bb1c717fbf61d309.png)

Request header:  
 ![afbeelding](https://global.discourse-cdn.com/auth0/original/3X/3/d/3d584fcb4f65e4e0bfdcb6bc73092d450d882d23.png)

Login page:

 ![afbeelding](https://global.discourse-cdn.com/auth0/original/3X/f/a/fa12acbf9f2995c91f633e0a9d497699a81da337.png)

---

<div class="post-metadata">

**Author:** ![adeliab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adeliab/32/12951_2.png) [@adeliab](https://community.auth0.com/u/adeliab)\
**Post date:** [May 10, 2021, 8:27am UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/7 "2021-05-10T08:27:16Z")

</div>

I wonder why the post is marked as solved already. Is there a way for me to mark it as unsolved? Thanks

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 10, 2021, 11:43am UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/8 "2021-05-10T11:43:49Z")

</div>

Hi @adeliab,

Looking at your screenshot of the login page, it looks like you have the Classic Universal Login enabled instead of the New Universal Login. The tenant language settings will only affect the New Universal Login.

I see that you have the New Experience enabled on the settings page. Do you have the **Customize Login Page** enabled? If so, that will override the main settings and the Classic UL will be used.

 ![Screen Shot 2021-05-10 at 7.41.14 AM](https://global.discourse-cdn.com/auth0/original/3X/1/f/1f290c14b25767b410b69bcc52d9944fedc5fa81.png)

Here is how to update the language using the lock widget if you’d prefer to stick with the classic experience: [Lock Internationalization](https://auth0.com/docs/libraries/lock/lock-internationalization#set-language-option)

---

<div class="post-metadata">

**Author:** ![adeliab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adeliab/32/12951_2.png) [@adeliab](https://community.auth0.com/u/adeliab)\
**Post date:** [May 10, 2021, 3:06pm UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/9 "2021-05-10T15:06:40Z")

</div>

hi @stephanie.chamblee ,

Ahh… thanks for pointing that out, I missed that. In the customized login page, I saw there’s a reference to @@config@@

What is this actually and where is it coming from?  
There seems to be snippet that checks for config.dict.signin and that check determines whether to pass languageDictionary or language to Lock. Is there a documentation on this mechanism?

Regards,

Adelia

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 11, 2021, 12:55pm UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/10 "2021-05-11T12:55:21Z")

</div>

Hi @adeliab,

As explained in [this topic](https://community.auth0.com/t/configuring-config-for-hosted-login-page/8287/2), the `@@config@@` construct is a placeholder that will be replaced by the runtime. The information contained within this value will be provided automatically by the runtime based on your configuration and also possibly based on parameters received from the client application.

In the Lock default template, this value is stored in the `config` object. If you are using the Classic Universal Login Experience with the Lock template, you can view the data in the config object by typing `config` in the browser console.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 26, 2021, 12:56pm UTC](https://community.auth0.com/t/universal-login-localization-not-working/62242/11 "2021-05-26T12:56:06Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
