8000 Role and client detail forms show the raw translation key instead of the localized text · Issue #55770 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

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

Backlog

Description

@mehmetenesturan

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

admin/ui

Bug Description

Built-in roles and clients store their name and description as a translation key, such as ${role_offline-access} or ${client_account-console}. The list views resolve these keys and show the localized text, but the detail forms show the raw key. The admin sees ${role_offline-access} in a role's Description field and ${client_account-console} in a client's Name field, with nothing telling them it is a key that themes localize. Overwriting it with plain text removes the localization for good.

Version

26.8.2, and current main

Regression

  • The issue is a regression

Expected behavior

The detail form shows what the key is displayed as, so the admin can tell it is a translation key before editing it.

Actual behavior

The Name and Description fields show only the raw ${...} key.

How to Reproduce?

  1. Open Realm roles and select offline_access. The Description field shows ${role_offline-access}, while the roles list shows "Offline access".
  2. Open Clients and select account-console. The Name field shows ${client_account-console}, while the clients list shows the localized name.

Anything else?

The list views use translationFormatter (js/apps/admin-ui/src/clients/ClientsSection.tsx). The detail forms bind the raw values in js/apps/admin-ui/src/components/role-form/RoleForm.tsx and js/apps/admin-ui/src/clients/ClientDescription.tsx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/admin/uikind/bugstatus/triageteam/core-shared

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0