How to Collect and Use the User's Local Language to Translate Universal Login

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.:
1

Then post the language (using the en portion) into the /authorize request using the ui_locales parameter, e.g.: