8000 Show what a translation key resolves to in role and client detail forms by mehmetenesturan · Pull Request #55771 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Show what a translation key resolves to in role and client detail forms - #55771

Draft
mehmetenesturan wants to merge 1 commit into
keycloak:mainfrom
mehmetenesturan:issue-i18n-token-detail-forms
Draft

mehmetenesturan wants to merge 1 commit into
keycloak:mainfrom
mehmetenesturan:issue-i18n-token-detail-forms

Conversation

@mehmetenesturan
Copy link
Copy Markdown

Closes #55770

Decisions and assumptions:

  • The field keeps the raw key as its value, because the key is what themes localize and replacing it with the resolved text on save would drop the localization. The form only adds a helper text with the resolved value.
  • A value counts as a key only when the whole value is ${...}; a key inside longer text is left alone, because label() would resolve it wrongly.
  • TextAreaControl gets the same optional helperText prop that TextControl already has.

I used an AI coding agent to draft this change and the tests; I reviewed and ran them.

Built-in roles and clients store their name and description as a translation key such as ${role_offline-access}. The list views show the translated text, but the detail forms only show the raw key. The forms now keep the key and say below the field what it is displayed as.

Closes keycloak#55770

Signed-off-by: Mehmet Enes Turan <enes@keymate.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Role and client detail forms show the raw translation key instead of the localized text

1 participant

0