Fix incorrect plural form in call tile (#34272)
This commit is contained in:
@@ -243,7 +243,10 @@
|
|||||||
"title": "Call in progress"
|
"title": "Call in progress"
|
||||||
},
|
},
|
||||||
"room": {
|
"room": {
|
||||||
"join_count": "%(joinedCount)s joined",
|
"join_count": {
|
||||||
|
"one": "%(count)s joined",
|
||||||
|
"other": "%(count)s joined"
|
||||||
|
},
|
||||||
"title": "Group call in progress"
|
"title": "Group call in progress"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+2
-3
@@ -81,13 +81,12 @@ export function RoomOngoingCallTileView(props: Props): React.ReactNode {
|
|||||||
* the call was ignored (by clicking decline button on the toast).
|
* the call was ignored (by clicking decline button on the toast).
|
||||||
*/
|
*/
|
||||||
function CallJoinedOrIgnoredContent({ snapshot }: { snapshot: RoomOngoingCallTileViewSnapshot }): React.ReactNode {
|
function CallJoinedOrIgnoredContent({ snapshot }: { snapshot: RoomOngoingCallTileViewSnapshot }): React.ReactNode {
|
||||||
const { facePileViewModel, totalParticipants } = snapshot;
|
const { facePileViewModel, totalParticipants: count } = snapshot;
|
||||||
const { translate: _t } = useI18n();
|
const { translate: _t } = useI18n();
|
||||||
const joinedCount = totalParticipants;
|
|
||||||
return (
|
return (
|
||||||
<Flex className={styles.subContainer} gap="6px" align="center">
|
<Flex className={styles.subContainer} gap="6px" align="center">
|
||||||
<FacePileView classNames={commonStyles.facepile} vm={facePileViewModel} />
|
<FacePileView classNames={commonStyles.facepile} vm={facePileViewModel} />
|
||||||
{_t("timeline|call_tile|ongoing|room|join_count", { joinedCount })}
|
{_t("timeline|call_tile|ongoing|room|join_count", { count })}
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user