Skip to content
Workforce IdentityMarkdown

Pages in the user's language

Sign-in prompts and consent pages in English, French or German, chosen from the user's browser, with your own wording for any message and any language you add.

AvailableAPI

The realm shows its sign-in prompts in the user’s own language, read from their browser. English, French and German are included. You can change any message’s wording for your realm, add a language the realm doesn’t include, or limit the languages your realm offers.

  • Who can do it: a realm administrator, in a group that holds RealmOwner (Delegated administration).
  • Where: today messages are set through the API (Call the API shows how to get $CVYUH_SESSION).

Each prompt is a message with a key, such as nativeStore.username for the username label. When a page is shown, the realm picks the best match for the browser’s Accept-Language among the languages it offers, and falls back to the deployment’s default language.

Your realm’s changes live in one object, i18nBundle, layered over the included messages one key at a time. A realm that changed nothing has none.

  • bundles holds your wording, as namespace, then language, then message key. Sign-in prompts are in the authn namespace; the consent page’s scope labels are in oauth2 (see Consent).
  • locales limits the languages your realm offers, as BCP 47 tags. Leave it out to offer every language the realm includes, including ones added later.

Messages use the Fluent format, so a message can fill in a value or change with a number, such as the attempts left before lockout.

Change one message in English, and add Spanish wording for it:

Terminal window
curl -X PATCH https://foobar.cvyuh.com/api/v0/am/objects/v1/i18nBundle/i18nBundle \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{ "bundles": {
"authn": {
"en": { "nativeStore.username": "Work email" },
"es": { "nativeStore.username": "Correo de trabajo" }
}
} }'

The sign-in page in the language their browser asks for first, among those the realm offers: prompts, buttons, the lockout warning, and the consent page’s scope labels. Sign-in refusals (a locked or deactivated account) are in English only today.

Setting or limitDefaultRange
Included languagesEnglish, French, German
locales: languages offeredevery included language, and any you addBCP 47 tags
A messageone linea multi-line message is skipped
SymptomCauseFix
Your wording doesn’t showThe message spans lines, or the key is misspelledKeep it to one line, and check the key’s spelling
A user sees EnglishTheir browser asks for a language the realm doesn’t offerAdd the language, or list it in locales

A change to i18nBundle is recorded as CREATED, UPDATED or PATCHED in Audit → Config (Change history).

  • Change only what you need. A key you don’t set keeps the included wording, so a realm can change one message without restating a whole language.
  • A language you add can be partial. A message it doesn’t hold is shown in the fallback language.
  • The fallback language is always offered, whether or not locales lists it.
  • Keep messages to one line. A multi-line message set here is skipped, and the included wording is shown.