Hi dear community,
I am using @auth0/auth0-spa-js library for Single Page Web application.
However, after reading community posts and guides, I am still unable to add additional login language support other than English. Hope the dear communicty can point some direction to me.
Here are what I have done:
- update the tennant settings with additional language I want to use, for example zh-CN
- tried both classic login and new login, and added the following line in customized login script
line 37: language = config.extraParams.ui_locales;
line 55: language: language,
3. in my code:
client.loginWithRedirect({
ui_locales: ‘zh-CN’
})
However the above doesnt work. And which puzzles me is that, even if I force the default the lanaguage setting to be “zh-CN” in tennant setting, the login pop up screen is still English.
Here are some additional logging I found in developer’s console (launch log in screen in chrome):
cdn_utils.js:34 GET https://cdn.auth0.com/js/lock/11.27.2/zh-cn.js net::ERR_ABORTED 403
r @ cdn_utils.js:34
u @ i18n.js:74
syncFn @ i18n.js:35
(anonymous) @ sync.js:56
m @ sync.js:51
(anonymous) @ index.js:29
St @ immutable.js:1971
St @ immutable.js:1980
St @ immutable.js:1980
pt.updateIn @ immutable.js:1278
a @ index.js:29
t.swap @ atom.js:12
i @ index.js:25
(anonymous) @ sync.js:91
setTimeout (async)
(anonymous) @ sync.js:91
(anonymous) @ index.js:11
(anonymous) @ atom.js:38
t._change @ atom.js:38
t.swap @ atom.js:12
i @ index.js:25
r @ actions.js:37
e @ core.js:68
e @ lock.js:6
index.js:435 language does not have property error
Appreciate if someone can share some experience in this particular area.
Thank you!