I can see universal login form support multi-language but it’s automatically switch based on browser’s language.
Please tell me how to control it.
Best with URL like
…/en-US/login → show English
…/hl-JA/login → show Japanese
I can see universal login form support multi-language but it’s automatically switch based on browser’s language.
Please tell me how to control it.
Best with URL like
…/en-US/login → show English
…/hl-JA/login → show Japanese
Hi @quanlm!
The language of the widgets can generally be controlled either by the user’s browser language preference or by the application sending the ui_locales
parameter with the required language. The language should also be enabled in the Auth0 Dashboard settings. Have you enabled the desired languages in your tenant? The supported languages are at the bottom of the Settings > General page in the Auth0 Dashboard. See Universal Login Internationalization for more information.
Additionally, here is an article that may be of help to you:
Please let me know if you have any additional questions!
Best,
Mary Beth
@marybeth.hunter
I want to extend this problem not only display languages but
can I show customize UI like background/color/… based on parameter sent by the application?
Hi @quanlm!
You can use the locale
parameter as a conditional in the page template.
<style>
{% if locale == "en" %}
//desired styling for English
}
{% elsif locale == "ja" %}
//desired styling for Japanese
}
{% endif %}
</style>
Relevant Documentation:
Let me know if I can help further!
Thanks,
Mary Beth