From 19f7ea2f7d7f44670a133ae44d4764b63c300df7 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 15 Jul 2026 10:59:11 +0200 Subject: [PATCH] Fix incorrect plural form in call tile (#34272) --- packages/shared-components/src/i18n/strings/en_EN.json | 5 ++++- .../event-tile/call/ongoing/room/RoomOngoingCallTileView.tsx | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/shared-components/src/i18n/strings/en_EN.json b/packages/shared-components/src/i18n/strings/en_EN.json index 9fb5de9d3f..2dfcc71fdb 100644 --- a/packages/shared-components/src/i18n/strings/en_EN.json +++ b/packages/shared-components/src/i18n/strings/en_EN.json @@ -243,7 +243,10 @@ "title": "Call in progress" }, "room": { - "join_count": "%(joinedCount)s joined", + "join_count": { + "one": "%(count)s joined", + "other": "%(count)s joined" + }, "title": "Group call in progress" } }, diff --git a/packages/shared-components/src/room/timeline/event-tile/call/ongoing/room/RoomOngoingCallTileView.tsx b/packages/shared-components/src/room/timeline/event-tile/call/ongoing/room/RoomOngoingCallTileView.tsx index e434a3957a..4f7ea61d71 100644 --- a/packages/shared-components/src/room/timeline/event-tile/call/ongoing/room/RoomOngoingCallTileView.tsx +++ b/packages/shared-components/src/room/timeline/event-tile/call/ongoing/room/RoomOngoingCallTileView.tsx @@ -81,13 +81,12 @@ export function RoomOngoingCallTileView(props: Props): React.ReactNode { * the call was ignored (by clicking decline button on the toast). */ function CallJoinedOrIgnoredContent({ snapshot }: { snapshot: RoomOngoingCallTileViewSnapshot }): React.ReactNode { - const { facePileViewModel, totalParticipants } = snapshot; + const { facePileViewModel, totalParticipants: count } = snapshot; const { translate: _t } = useI18n(); - const joinedCount = totalParticipants; return ( - {_t("timeline|call_tile|ongoing|room|join_count", { joinedCount })} + {_t("timeline|call_tile|ongoing|room|join_count", { count })} ); }