Fix i18n numbers getting toString()'d

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-02-29 20:02:29 -06:00 committed by GitHub
parent 8296b3de96
commit 60a478d8bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View file

@ -37,7 +37,7 @@ export function CallParticipantCount({
}
if (!innerText) {
innerText = i18n('icu:CallControls__InfoDisplay--participants', {
count: String(count),
count,
});
}
@ -46,7 +46,7 @@ export function CallParticipantCount({
return (
<span
aria-label={i18n('icu:calling__participants', {
people: String(count),
people: count,
})}
className="CallControls__Status--InactiveCallParticipantCount"
>
@ -58,7 +58,7 @@ export function CallParticipantCount({
return (
<button
aria-label={i18n('icu:calling__participants', {
people: String(count),
people: count,
})}
className="CallControls__Status--ParticipantCount"
onClick={toggleParticipants}

View file

@ -59,7 +59,7 @@ export function CallingAdhocCallInfo({
i18n('icu:calling__in-this-call--one')}
{participants.length > 1 &&
i18n('icu:calling__in-this-call--many', {
people: String(participants.length),
people: participants.length,
})}
</div>
<button

View file

@ -88,7 +88,7 @@ export const CallingParticipantsList = React.memo(
i18n('icu:calling__in-this-call--one')}
{participants.length > 1 &&
i18n('icu:calling__in-this-call--many', {
people: String(participants.length),
people: participants.length,
})}
</div>
<button

View file

@ -104,7 +104,7 @@ export function CallingPreCallInfo({
subtitle = i18n('icu:calling__pre-call-info--many-people-in-call', {
first: participantNames[0],
second: participantNames[1],
others: String(participantNames.length - 2),
others: participantNames.length - 2,
});
break;
}
@ -171,12 +171,12 @@ export function CallingPreCallInfo({
? i18n('icu:calling__pre-call-info--will-ring-many', {
first: memberNames[0],
second: memberNames[1],
others: String(memberNames.length - 2),
others: memberNames.length - 2,
})
: i18n('icu:calling__pre-call-info--will-notify-many', {
first: memberNames[0],
second: memberNames[1],
others: String(memberNames.length - 2),
others: memberNames.length - 2,
});
break;
}

View file

@ -126,7 +126,7 @@ function renderUsers(
);
}
const count = members.length.toString();
const count = members.length;
return (
<p>