Keycloak localization and translations: when a multilingual login is worth the upkeep
Localization in Keycloak covers the text users see on the login, account and email pages, and it is configured per realm. A realm can enable internationalization, choose a default locale and list the locales it supports, so a bank serving customers in several countries or a SaaS vendor selling into multiple markets can give each user sign-in screens and notification emails in their own language. Teams usually need this when users reach the login page before they are authenticated, which means the language choice cannot depend on the user's profile. The Keycloak server administration guide describes the realm settings and the message bundle mechanism, and the most useful first step is to list every market, language and sign-in flow the realm will serve before touching any files.
Translation text is a recurring cost, not a one-time task. Every new screen, required action, custom authenticator message or email template added to the theme needs a matching entry in each supported language, and every change to the default wording has to be carried into each translation. Keycloak upgrades can also add or rename message keys, so a translation set that was complete on one release can show gaps or English fallback text after the next one. Ask who writes and reviews each language, how quickly changes reach production, and who checks right-to-left layouts for Arabic or Hebrew. These answers determine the ongoing effort far more than the initial setup does.
DeployOpen plans and maintains the localization work inside your own infrastructure. The scope usually covers which realms and locales to enable, how message bundles are overridden in the custom theme so upgrades stay manageable, how translation files move through your review process, and how each Keycloak release is checked for new keys. Before agreeing a quote, confirm which languages your compliance and support teams need to review, whether legal wording must be approved by a named owner, and whether translators are supplied by you or by the provider.
How a login page picks its language
The decision starts when a sign-in page is requested and checks whether internationalization is enabled for the realm. If it is off, the page falls back to the default text. If it is on, Keycloak looks for a user locale from the profile or the browser preference, then falls back to the realm default locale when none matches. The last step is the message bundle lookup, where custom overrides in the theme are applied after the shipped bundles. Check each branch in your own realm, because the exact precedence should be confirmed against the current server administration guide.
Decision path from realm settings to the message text a user sees.
Localization options in Keycloak and when each fits
This table compares the localization controls available for Keycloak login, account and email pages, from per-realm settings to message bundle overrides. Read each row as a decision: what the option changes, when it fits, and what upkeep it leaves your team with after every translation change or upgrade.
| Option | When it fits | Maintenance it implies |
|---|---|---|
| Per-realm internationalization | Different user populations or tenants need different language sets, so each realm carries its own choices | Each realm's locale settings must be reviewed when languages are added, removed or retired |
| Default locale | One language is the fallback for users with no matching preference, such as the language of your support team | Confirm the fallback still reads correctly after every translation change, since it applies to any unmatched user |
| Supported locale list | You offer a deliberate, bounded set of languages that you have reviewed and can support | Every listed language needs complete translations, so each addition adds review work for each theme you ship |
| User-selected locale | Users should switch language on the login or account pages themselves, with their choice remembered | Confirm the selector appears on every page you expect, and test that the stored preference carries across sessions |
| Theme message bundle overrides | You need to correct or rephrase specific strings in one theme, such as product names or legal wording | Overrides are tied to your theme, so review them when you upgrade Keycloak or change the base theme |
| Separate email message bundles | Verification, password reset and invitation emails need their own wording per language | Email text is a separate set of bundles to translate and test alongside the login pages, so keep the two in step |
| Right-to-left languages | Your supported languages include scripts that read right to left, such as Arabic or Hebrew | Layout must be tested on each page and in email, and confirm your theme handles direction before go-live |
How to set up translations for a Keycloak realm
This sequence takes a realm from a list of target languages to login, account and email pages that users can read in each supported locale, with a check at every stage so gaps surface before go-live. It is written as a practical order of work rather than a fixed timeline.
Confirm target languages and markets
Start by listing the languages your users sign in with, the markets each realm serves and the locale your support team can read when reviewing text. Product, compliance and support leads should agree this list, because every language adds translation and review work for each theme page and email template. Done means a written list of locales per realm, with one named default. Verify by checking that each locale has an owner who can review its text and a test user who signs in with it.
Enable internationalization on the realm
In the admin console, open the realm settings and turn on internationalization for each realm that needs multiple languages. Keep realms that serve only one language unchanged so their login pages do not pick up extra locale behavior. Record the realm name and the change in your configuration repository if you manage Keycloak as code. Verify by opening the login page of the realm in a browser and confirming the language selector appears.
Set the default and supported locales
Choose one default locale for the realm and add the supported locales from your confirmed list. The default applies when a browser sends no matching language, so it should match your largest user group or your primary support language. Check that each locale you add has translated message bundles available in your theme or in the Keycloak defaults, because a locale without translations falls back to text in another language. Verify by sending a request with each Accept-Language value and confirming the login page renders in the expected language.
Prepare message bundles for login, account and email pages
Create or extend the message bundle files for each locale in your custom theme, covering the login, account and email message keys that your pages use. Keep the keys identical across locales, copy the English bundle as a starting point and translate only the values, so nothing is missing when a page is rendered. Keep overrides limited to text you actually change, since large copies of the default bundles are harder to keep current after upgrades. Verify by running a key comparison across bundles to confirm each locale defines every key used by the theme templates.
Test each locale on the login flow
Sign in with a test user for each supported locale and walk through the login page, the error messages for a wrong password, any required action screens and the one-time code or passkey prompts if your realm uses them. Look for untranslated labels, mixed-language sentences and text that overflows its box. Repeat with a user whose browser language differs from the user's stored preference so you can see which setting wins. Done means every login screen has been seen in every locale with no fallback text.
Test each locale on the account pages and emails
Sign in to the account console as a test user in each locale and check the profile, security and sign-in pages, then trigger each email type the realm sends, such as verification and password reset, and read the messages in each language. Confirm that the email subject lines and bodies come from the locale bundles and that links still work. Record any string that stays in English so the translation owner can fix it. Verify by keeping a signed checklist per locale that lists each page and email reviewed.
Check right-to-left layouts
If you add a right-to-left language such as Arabic or Hebrew, review the login, account and email layouts in that locale for alignment, icon direction, input fields and mixed-direction text such as email addresses and phone numbers. Adjust your theme styles only where the default layout breaks, and retest the pages after each change. Have a native reader check the wording as well as the layout. Done means the reviewer signs off on each page in the right-to-left locale, and the same checks run again whenever the theme or Keycloak version changes.
Where translated text comes from: built-in bundles, custom bundles and external translators
Keycloak ships message bundles for the login, account and email pages as part of its default themes. The Keycloak project owns these strings, and they arrive with each release. You do not edit the shipped files in place. When a string reads poorly in your language, the usual fix is to override that single key in a custom bundle or to report the gap upstream so a later release corrects it.
- Owner: the Keycloak project maintains the shipped text and its translations; your team owns only what it overrides.
- Review: check the rendered pages in each enabled locale after every upgrade, since the shipped wording can change.
- Release changes: when a release adds keys, the new strings appear in the default language or fall back to it until translated, so review those pages first.
- Renamed keys: an override that targets a renamed or removed key stops taking effect silently, so compare your override keys against the release notes.
- Upstream fixes: report wording problems to the project rather than carrying long-term local patches that you must reapply.
Before you upgrade, list every key your overrides touch and confirm each one still exists in the target version's default bundle.
Custom message bundles are the strings your organization writes or edits for its own realm, theme or email templates. Your team owns them completely, including terminology, tone and the approval of each change. Because they sit on top of the built-in text, they carry the most upgrade risk: every key you override is a place where a new release can change behavior without warning.
- Owner: your product or identity team, with named approvers for legal and support wording.
- Scope: keep overrides to the keys that truly need local wording, and document the reason for each one.
- Version control: store bundle files in the same repository as the theme so changes are reviewed and traceable.
- Key drift: a release that renames or removes a key can leave your override unused, so add a check that compares overrides against the target version's default keys.
- Testing: render each page and email in every enabled locale, including error and validation messages, which are often missed.
Ask your delivery partner or internal team to show how overrides are inventoried and checked before each upgrade, since that list is what keeps localization maintainable.
An external translation service or agency produces translated strings for languages your team cannot review directly. The service owns the translation work under its contract, but your organization still owns the terminology and the final text that users see. Translation quality depends on the glossary, context notes and review process you provide, not only on the translator's skill.
- Owner: the agency delivers translations; your localization owner approves terminology and signs off each release of the strings.
- Context: supply screenshots or key-level notes, because a message key alone rarely tells a translator whether a word is a button label or an error.
- Glossary: agree terms for sign-in, multi-factor, recovery codes and organization names, and reuse them across releases.
- Re-translation on change: each new or changed key needs translation, so ask how the agency is paid and how long a change takes, and get both in writing.
- Native review: confirm who in your organization, or a named reviewer, can read the target language for security-sensitive messages.
Ask for the file format the agency returns, how it maps back to message keys, and how it handles keys removed in a later release.
Right-to-left languages and layout checks
Right-to-left support in Keycloak is not something you can assume from the locale list. Direction and layout come from the theme's templates and stylesheets, so a language that is enabled and translated can still render with broken alignment, misplaced icons or form fields that read in the wrong order. Treat right-to-left as a theme test, not a translation test. Before you announce a language such as Arabic or Hebrew to users, confirm in the exact Keycloak version you run whether the theme you use sets text direction for the chosen locale, and whether the default theme's stylesheets handle it correctly for the screens you expose.
Plan the check across every surface users reach: the login page, the registration form, the account console and the email templates. On each one, look at form alignment and label placement, the position of password visibility toggles, back and submit buttons, error messages, and icons that imply direction such as arrows or progress indicators. Mixed-direction content needs its own cases, for example an email address, a username or a product name with Latin characters inside an Arabic sentence. Emails are the most often missed surface, because mail clients apply their own direction rules and the text version of a message has no stylesheet at all.
Do not assume parity across locales. A layout that works in English and German can fail in a right-to-left language even when the translation is complete. Ask your theme developer or DeployOpen to document which templates and stylesheets carry direction-specific rules, then run a written test script per locale against a test realm before each Keycloak upgrade. Record the results with screenshots, and repeat the run whenever you change the theme or move to a new minor release, since template changes in the project can affect your overrides.
Security and quality risks in translated sign-in pages
Translated login, account and email pages carry the same security meaning as the English originals, but they are maintained separately and rarely reviewed by the people who wrote the security rules. The cards below name the places where translation drift can weaken sign-in, break a form or contradict what users were told, along with the control and owner for each.
Mistranslated security warnings
A warning about phishing, an unrecognized device or a changed password can lose its meaning in translation, especially when a short English phrase is rendered loosely. Ask a native-speaking security reviewer to check each warning against the English source and confirm the user still understands the action to take. Owner: the security team, with the localization reviewer signing off.
Keycloak docsPassword rule text drifting from policy
Password requirement messages describe the policy configured in the realm, such as minimum length or required character classes. If a translated message states a rule the realm does not enforce, users will build passwords that fail at submit or, worse, believe a weaker rule applies. Regenerate the translated rule text whenever the password policy changes and test one sample password per locale. Owner: the identity engineer who owns the realm policy.
Phishing-like text drift between locales
When one locale asks users for information the English page never requests, or uses different wording for the same button, users learn to expect unusual prompts. This pattern is hard for people to spot and is exactly what phishing campaigns imitate. Compare the set of fields and actions on each locale against the English page and flag any difference in wording that changes what a user is asked to do. Owner: the security team.
Untested overrides breaking forms
Overridden message bundles and templates can drop a placeholder, rename a form field or leave a required message key empty, so a login or registration step fails only in one language. Run a scripted sign-in, password reset and registration test in every supported locale after each theme change and after each Keycloak upgrade. Owner: the platform team that ships the theme.
Upgrading guideInconsistent terms across login and email
A user may see a term such as 'verification code' on the login page and a different term in the reset email, which makes the flow look unfamiliar or suspicious. Consistent terminology needs one glossary shared by the login, account and email message bundles. Keep one approved glossary per language and check login and email strings against it before each release. Owner: the product owner for the sign-in experience, with translators.
Unlocked translation key sets
Translators who can change any key can also change security-relevant wording without review. Keep the key sets for warnings, password rules and consent text under change control, and allow edits to general copy freely. Require a second reviewer for any change to security-relevant keys and record the change in version control. Owner: the platform team manages access, and the security reviewer approves changes.
Translation upkeep across Keycloak upgrades
Custom message bundles are a maintenance obligation, not a one-time task. Keycloak ships on a minor cadence: since Keycloak 26.0, the project plans four minor releases a year, and a release can add, change or remove message keys. A locale file you overrode last year can therefore keep an old string, silently fall back to the default language for a new prompt, or reference wording the login page no longer shows. The first decision is who owns each locale file and who signs off its translation after every upgrade.
Keycloak says breaking changes in a minor release will be opt-in, which lowers the risk of a surprise, but it does not remove the need to check text. Read the upgrade notes for each target version and search them for messages, themes and internationalization settings. Then run a routine before each rollout: export the keys from the new release's default bundle, diff them against your custom bundle for every supported locale, and list added, removed and changed keys. Translate additions, delete orphaned keys, and review changed English source strings, since a translation of an outdated source is still wrong.
Retest each locale on a staging realm that uses your production theme and realm settings. Open the login, registration, password reset, account and email pages in every supported language, including error and validation messages, and check right-to-left layout where you support it. Confirm which keys your SSO clients and custom authenticators render, because those strings are easy to miss in a diff. Ask your translation vendor or internal team for a turnaround time and an agreed process for urgent fixes before you commit to a release cadence, and confirm the current release details in the Keycloak upgrading guide before you plan the window.
Keycloak localization questions buyers ask before hiring help
What drives the cost of translating Keycloak login pages?
The main drivers are the number of languages, the volume of message keys you override, and how many review rounds your approvers require. Each language adds translation work, a native reviewer pass, and a test cycle on every login flow you support. Custom message bundles grow with every custom page, error message and required action, so a theme that adds a few new screens costs more to localize than one that only changes logos and colors. Ask any partner for a quote that lists each language separately, the count of keys in scope, who supplies the translations (your team, a translation vendor or the partner), and whether review rounds are included. Translation vendor fees are paid by you, and partner fees cover the engineering and testing time, so the quote should show those two lines apart.
How long does it take to add languages to Keycloak?
Duration depends on how many languages you add, how many keys need translation, and how quickly approved translations come back. Engineering setup for internationalization per realm is usually short compared with translation and review, which often sets the critical path. Email templates and any right-to-left layout work add testing time because each language must be checked in every template and page. Ask for a written schedule with separate milestones for terminology approval, translation, native review, theme build, and regression testing across each supported locale. Do not accept a timeline that omits the review step, because that is where most schedule slips occur.
What must our team provide before localization work starts?
You need to provide approved terminology, a list of supported locales, and access to native-speaking reviewers who can judge tone and legal wording for each language. Your security or legal team should approve wording for password, MFA and consent messages, since errors there cause support tickets and compliance questions. You also need test users in each language, a test realm or environment that mirrors production, and a named owner who can accept translations. Missing any of these items is the most common reason localization projects stall. Put each item in the statement of work with a named owner and a due date so that delays are visible early.
Can our own team localize Keycloak without a partner?
A capable team can localize Keycloak alone if it has someone comfortable with the theme structure, FreeMarker templates and the realm internationalization settings, plus native reviewers and a test plan. The work is mostly careful, repetitive file management, and the risk lies in upgrades and missed keys rather than in the initial setup. Teams with no theme experience, many languages, or right-to-left requirements often benefit from a partner for the first build and the upgrade test. Whichever route you choose, document which message keys you overrode, so the next Keycloak release can be checked against that list. Your decision should rest on skills in-house and the volume of changes, not on the assumption that translation is simple.
How do right-to-left languages change Keycloak theme work?
Right-to-left languages such as Arabic or Hebrew change text direction, alignment, icon placement and form layout, so they need more than translated strings. The theme must handle direction in stylesheets and templates, and every login, account and email page needs visual testing in that direction. Mixed content, such as English product names or numbers inside Arabic sentences, can display in unexpected order and needs review by a native speaker. Expect extra design and test effort for each page you expose in these languages. Ask any partner to list which pages and templates they will test in right-to-left mode and how many browsers and devices they will cover.
What ongoing translation upkeep should we expect after launch?
Translation upkeep recurs every time you change a message key, add a page, or upgrade Keycloak and its default message bundles. New or renamed keys in a release must be checked against your overrides, and any untranslated key will fall back to the default language. Your team will also need a process for reviewing new strings before each release. Plan for an upkeep budget in the same way you plan for theme maintenance, and ask any partner whether post-upgrade translation checks are part of a retainer or a one-time project. Keep the list of overridden keys in version control so that the upgrade test has a clear starting point.
Which Keycloak upgrade risks affect localized pages?
The main risk is that a new Keycloak release adds, renames or changes message keys that your overrides depend on, which can leave some languages showing old wording or default text. The Keycloak project says breaking changes in a minor release will be opt-in, which lowers but does not remove the need for testing. Keycloak 26.8.1 is the current release, so check any upgrade path against the upgrading guide and the 26.8 notes before you schedule translation work. Run a full login, account and email test in every supported language on a staging realm after each upgrade. Record which language packs and templates changed, so the next upgrade starts from a known state.
What should a written quote for Keycloak localization include?
A usable quote lists the languages in scope, the message keys and email templates covered, the number of review rounds, the right-to-left pages included, and the test matrix across browsers and languages. It should separate one-time work, such as the first theme build and translation, from recurring work, such as upkeep after upgrades. Ask who owns the translations, who pays translation vendors, and what happens if a review round changes terminology already in use. The quote should also name the Keycloak version and deployment target, because the effort differs between a single realm and many realms with separate branding. Compare quotes on the written scope rather than the headline figure, since two proposals can cover very different work.
Limits to confirm in your environment
Localization behavior depends on the Keycloak version you run, the distribution you choose and the theme you ship. The cards below list the items to confirm in your own environment before you promise languages to users, and each one should be checked against the current server administration guide rather than assumed from earlier releases.
Supported locales in your version
Confirm which locales your running Keycloak version ships for the login, account and email pages. Locale coverage and message bundle completeness can differ between releases, so a language that worked on one version may be partial on another. Check the list against the version in your staging environment, then test each language your users need on the actual login and account pages before go-live.
- Current release
- 26.8.1
Red Hat build behavior
If you run the Red Hat build of Keycloak instead of the upstream distribution, confirm how its locale set, default settings and supported theme behavior match the upstream project you tested. The product version you deploy may trail the upstream release, so the translations and bundle keys you rely on should be verified against the exact build you will support.
Red Hat build pageTheme compatibility after upgrades
A custom theme that overrides message bundles or templates can break or silently fall back to default text after a Keycloak upgrade. Keep a list of every message key you override, and rerun the login, account and email pages in each supported language after each minor upgrade. Ask your partner or internal team to document which template overrides carry the most upgrade exposure.
Email delivery per locale
Confirm that verification, password reset and invitation emails render correctly in each language, including subject lines, HTML and plain text versions and character encoding. Check that the mail server and sending domain accept the non-Latin characters your locales use, and confirm that the SMTP settings meet the StartTLS requirements in the 26.8 upgrade notes.
Translation gaps in your theme
Compare the message keys your theme ships with those used by the default theme. Any missing key falls back to another language or the default text, which can leave mixed-language pages. Confirm how your version resolves fallbacks, and test error messages, validation text and custom attribute labels, since these are often the strings that teams forget to translate.
Right-to-left and layout checks
Confirm that your theme's stylesheets and templates handle right-to-left languages, including mirrored layouts, input alignment and mixed-direction content such as email addresses. Ask whether your Keycloak version and theme support direction switching per locale, and verify it visually on the login, account and email pages with a native reviewer.
How DeployOpen scopes a localization project
A localization engagement starts with a written scope that names the languages, the pages in each realm, and the deliverables for each one. For Keycloak that list usually covers the login pages, the account console messages, and the email templates, since each is translated through different message bundles and templates. The scope also records which realms and clients get which default and supported locales, and whether right-to-left layouts are needed for any language. Before work begins, both sides should agree who supplies the approved translations, who reviews them in context, and who signs off on the final text. Translation vendors, in-house linguists and native-speaking reviewers each carry different responsibilities, and the document should say which of them DeployOpen is responsible for and which the client keeps.
Review responsibilities are where most localization projects lose time, so the written scope should set them out in detail. Ask for a named reviewer per language and a rule for how disagreements about terminology are settled, for example a shared glossary for terms such as sign-in, passkey and recovery code. The scope should also state how the work is verified: which pages are checked in a running instance, how overflowing text is handled in narrow layouts, and what the client receives at handover, such as the override files and a record of which keys were translated. Quotes should be compared on these items, not only on language count.
Localization is not a one-time deliverable, because every Keycloak upgrade can add or change message keys and so leave some translations missing or stale. A retainer can cover that upkeep: reviewing new keys after each upgrade, updating translations, and retesting the pages. Ask any partner how upgrade notes will be checked for new keys, who approves changes to existing translations, and how the work is billed when a release adds only a few strings. DeployOpen offers retainers for ongoing support and upgrades, and the upkeep terms are set in the same written agreement as the original scope.
How DeployOpen delivers and supports Keycloak localization
DeployOpen scopes, builds, tests, documents and hands over Keycloak localization inside your own infrastructure, so your teams can review every locale before it reaches users. Engagements are fixed-scope, with ongoing support available as a retainer once the translations are live.
How we scope
- Agree in writing which realms, login, account and email pages, and languages are in scope
- Confirm the default locale, supported locales and which translation source each language will use
- Record who approves translations and who maintains them after handover
How we build
- Enable internationalization per realm and set default and supported locales in your deployment configuration
- Override message bundles for each language and test login, account and email pages in every locale
- Check right-to-left layout, text expansion and fallback behavior before sign-off
How we hand over
- Deliver the theme and message bundle files in version control with a written setup and change guide
- Document the translation workflow, including how new keys are added and how upkeep is assigned
- Walk your team through testing a new Keycloak release against your translated pages
How we support
- Retest translated pages after each Keycloak upgrade, since new message keys can appear in a release
- Offer ongoing support and continuous testing as a retainer, scoped in writing
- Confirm the support scope, response expectations and retest cycle in the written agreement

