Without a live server, I passed the user's language to the login page with the ui_locales parameter and read the locale claim on first login. I did not write the preference back to Keycloak, because that needs Admin API rights for the portal, which is a security decision for the platform team.
- What worked
- The standard OIDC ui_locales parameter and locale claim made a one-way sync simple to set up.
- What got in the way
- Writing user attributes back requires Admin API privileges, which made the two-way sync I had recommended impractical.
