Repository navigation
web/flows: fix untranslated user field labels in identification stage - #23518
Merged
GirlBossRush merged 4 commits intoJun 29, 2026
Merged
GirlBossRush merged 4 commits into
GirlBossRush merged 4 commits into
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23518 +/- ##
==========================================
+ Coverage 93.15% 93.26% +0.11%
==========================================
Files 1037 1037
Lines 60658 60658
Branches 400 400
==========================================
+ Hits 56506 56575 +69
+ Misses 4152 4083 -69
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
mohamed-karam
force-pushed
the
fix/untranslated_identificaiton_fields
branch
from
June 29, 2026 14:20
f58a3e7 to
768020a
Compare
GirlBossRush
self-requested a review
June 29, 2026 15:08
GirlBossRush
approved these changes
Jun 29, 2026
GirlBossRush
enabled auto-merge (squash)
June 29, 2026 15:10
kensternberg-authentik
added a commit
that referenced
this pull request
Jun 30, 2026
…yers' into web/css/enabling-layers * refs/remotes/origin/web/css/enabling-layers: (23 commits) flows: fix flow executor authentication with jwt (#16646) web: bump playwright from 1.60.0 to 1.61.0 in /web (#23542) core, web: update translations (#23534) web: bump the eslint group across 1 directory with 3 updates (#23538) web: bump type-fest from 5.6.0 to 5.7.0 in /web (#23544) lifecycle/aws: bump aws-cdk from 2.1128.0 to 2.1128.1 in /lifecycle/aws (#23535) core: bump deepmerge from 2.0 to 2.1.0 (#23539) root: fix "make gen" failing with "the input device is not a TTY" (#23546) core: bump library/golang from `76a2924` to `68b7145` in /lifecycle/container (#23536) core: bump goauthentik/fips-python from `15f00f3` to `6067443` in /lifecycle/container (#23537) website/integrations: fix logo missing (#23548) translate: Updates for project authentik and language ar_AA (#23516) Web/maintenance/explicit model endpoints (#22897) providers/oauth: Properly return error via post and for request objects (#23037) providers/oauth: Logout remove static html (#23002) core: bump dramatiq from 2.1.0 to 2.2.0 (#23381) website: bump semver from 7.8.4 to 7.8.5 in /website (#23299) web/flows: fix untranslated user field labels in identification stage (#23518) tasks/schedules: fix paused schedules getting unpaused on startup (#23521) sources/ldap: avoid re-creating connections to LDAP server (#23520) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Jun 30, 2026
* main: (591 commits) core: bump dramatiq from 2.1.0 to 2.2.0 (#23381) website: bump semver from 7.8.4 to 7.8.5 in /website (#23299) web/flows: fix untranslated user field labels in identification stage (#23518) tasks/schedules: fix paused schedules getting unpaused on startup (#23521) sources/ldap: avoid re-creating connections to LDAP server (#23520) web: bump the bundler group across 1 directory with 3 updates (#23207) core: bump webauthn from 2.7.1 to 2.8.0 (#23249) lib/sync: add Sync base model for storing past sync history (#23184) web: bump launch-editor from 2.13.2 to 2.14.1 (#23309) web: bump the eslint group across 1 directory with 2 updates (#23239) web: bump uuid from 14.0.0 to 14.0.1 in /web (#23310) lifecycle/aws: bump aws-cdk from 2.1126.0 to 2.1128.0 in /lifecycle/aws (#23377) website: bump the build group across 1 directory with 6 updates (#23406) core: bump coverage[toml] from 7.14.2 to 7.14.3 (#23410) core: bump github.com/jellydator/ttlcache/v3 from 3.4.0 to 3.4.1 (#23405) core: bump gorm.io/gorm from 1.31.1 to 1.31.2 (#23404) ci: bump actions/setup-go from 6.4.0 to 6.5.0 (#23412) core: bump library/node from `f9b8bd6` to `a1d9d67` in /lifecycle/container (#23407) core: bump goauthentik/fips-python from `fe20a68` to `15f00f3` in /lifecycle/container (#23408) core: bump library/node from 26.3.1-trixie to 26.4.0-trixie in /website (#23409) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Jul 2, 2026
* main: core: bump dramatiq from 2.1.0 to 2.2.0 (#23381) website: bump semver from 7.8.4 to 7.8.5 in /website (#23299) web/flows: fix untranslated user field labels in identification stage (#23518) tasks/schedules: fix paused schedules getting unpaused on startup (#23521) sources/ldap: avoid re-creating connections to LDAP server (#23520) web: bump the bundler group across 1 directory with 3 updates (#23207) core: bump webauthn from 2.7.1 to 2.8.0 (#23249) lib/sync: add Sync base model for storing past sync history (#23184)
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
What does this PR change?
Fixes the Identification Stage so that the identifier field's label and placeholder ("Username", "Email", "UPN", or a combined variant like "Username or Email") are translated into the active UI locale.
The labels were built from a module-level
UI_FIELDSconstant whosemsg()calls were evaluated once at import time. This constant is replaced with auiFieldLabels()function that is invoked insiderenderInput(), so the strings are resolved and rendered with the active locale.Why is this change needed?
Authentik's web UI uses
@lit/localizein runtime mode, where onlymsg()calls made during render pick up the active locale and re-render when it changes. BecauseUI_FIELDSran itsmsg()calls at module-import time - before the locale is applied — the field labels were frozen at the source locale (English) for every non-English UI. The translations already existed in the catalogs; they were simply never applied at runtime. As a result, the Identification Stage on the default authentication flow always showed an English field label even when the rest of the page was translated.How was this tested?
default-authentication-flowand change the locale to a non-English locale (German). Before the change the field label/placeholder rendered in English; after the change, it's renders localized (e.g. "Anmeldename") and updates when the locale changes.UI_FIELDSconstant remain.make all(lint, build, test).Linked issues
closes #23517
Checklist
make all)make docs)