Overview
This article details how to collect and use the user’s local language to translate Universal Login pages.
Applies To
- Universal Login pages
- Collect User’s Local Language
Solution
According to this documentation, the pages will be rendered based on the Accept-Header http header sent by the browser, so this should be automatic, providing the language that is selected in the tenant (Settings > General tab).
For more control, it may be possible to pull the language from the request, e.g.:
Then post the language (using the en portion) into the /authorize request using the ui_locales parameter, e.g.: