Expand IDP display name message keys in the account console linked accounts page
Some checks failed
Weblate Sync / Trigger Weblate to pull the latest changes (push) Has been cancelled

Expand identity provider display names in the account console linked accounts
page before rendering them. This allows names with message key syntax (e.g.,
${idps.google.displayName}) to be unwrapped and rendered correctly based on
the selected locale.

Closes #46512

Signed-off-by: Mohammed Elbagoury <m.a.bagoury@gmail.com>
This commit is contained in:
Mohammed Elbagoury 2026-02-26 13:57:36 +02:00 committed by Pedro Igor
parent 5d37617911
commit 5facde53fe

View file

@ -1,4 +1,8 @@
import { IconMapper, useEnvironment } from "@keycloak/keycloak-ui-shared";
import {
IconMapper,
label,
useEnvironment,
} from "@keycloak/keycloak-ui-shared";
import {
Button,
DataListAction,
@ -63,7 +67,7 @@ export const AccountRow = ({
</SplitItem>
<SplitItem className="pf-v5-u-my-xs" isFilled>
<span id={`${account.providerAlias}-idp-name`}>
{account.displayName}
{label(t, account.displayName)}
</span>
</SplitItem>
</Split>