Skip to content

Commit

Permalink
l18n for client names in device activity
Browse files Browse the repository at this point in the history
Fixes keycloak#32916

Signed-off-by: Stan Silvert <[email protected]>
  • Loading branch information
ssilvert committed Sep 16, 2024
1 parent 83c0073 commit 840e4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/apps/account-ui/src/account-security/DeviceActivity.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ContinueCancelModal,
useEnvironment,
label,
} from "@keycloak/keycloak-ui-shared";
import {
Button,
Expand Down Expand Up @@ -35,7 +36,6 @@ import {
SessionRepresentation,
} from "../api/representations";
import { Page } from "../components/page/Page";
import { TFuncKey } from "../i18n";
import { formatDate } from "../utils/formatDate";
import { useAccountAlerts } from "../utils/useAccountAlerts";
import { usePromise } from "../utils/usePromise";
Expand Down Expand Up @@ -92,7 +92,7 @@ export const DeviceActivity = () => {
clients.forEach((client, index) => {
let clientName: string;
if (client.clientName !== "") {
clientName = t(client.clientName as TFuncKey);
clientName = label(t, client.clientName);
} else {
clientName = client.clientId;
}
Expand Down

0 comments on commit 840e4d7

Please sign in to comment.