Fix i18n numbers getting toString()'d
Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
parent
8296b3de96
commit
60a478d8bd
5 changed files with 9 additions and 9 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ function renderUsers(
|
|||
);
|
||||
}
|
||||
|
||||
const count = members.length.toString();
|
||||
const count = members.length;
|
||||
|
||||
return (
|
||||
<p>
|
||||
|
|
Loading…
Add table
Reference in a new issue