Hello, we had the request to retrieve the login page based on the current ui culture set on the application using the adapter,
so we add the option in order to set the desired locale for retrieving the login page. By default keycloack wil render the login page localized based on these conditions:
With internationalization enabled, the locale is resolved in the following priority:
kc_locale query parameter
KEYCLOAK_LOCALE cookie value
User’s preferred locale if a user instance is available
ui_locales query parameter
Accept-Language request header
Realm’s default language
So, our issue was, suppose our application was starting with a defined uiCulture, the login page was rendered base on 5(Accept-Language) header, which many times was different from the defined in the application.
All you need, which is optional, is to configure your adapter with this parameter, e.g
Hello, we had the request to retrieve the login page based on the current ui culture set on the application using the adapter, so we add the option in order to set the desired locale for retrieving the login page. By default keycloack wil render the login page localized based on these conditions:
With internationalization enabled, the locale is resolved in the following priority:
So, our issue was, suppose our application was starting with a defined uiCulture, the login page was rendered base on 5(Accept-Language) header, which many times was different from the defined in the application.
All you need, which is optional, is to configure your adapter with this parameter, e.g
Be carefull to have your desired ui culture(based on web.config or whatever) before keycloak initialization.