You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Role and client detail forms show the raw translation key instead of the localized text #55770
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?
Open Realm roles and select offline_access. The Description field shows ${role_offline-access}, while the roles list shows "Offline access".
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.
Activity