Fix i18n numbers getting toString()'d
This commit is contained in:
parent
9c072c5bc1
commit
2743300597
5 changed files with 9 additions and 9 deletions
|
@ -37,7 +37,7 @@ export function CallParticipantCount({
|
||||||
}
|
}
|
||||||
if (!innerText) {
|
if (!innerText) {
|
||||||
innerText = i18n('icu:CallControls__InfoDisplay--participants', {
|
innerText = i18n('icu:CallControls__InfoDisplay--participants', {
|
||||||
count: String(count),
|
count,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export function CallParticipantCount({
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
aria-label={i18n('icu:calling__participants', {
|
aria-label={i18n('icu:calling__participants', {
|
||||||
people: String(count),
|
people: count,
|
||||||
})}
|
})}
|
||||||
className="CallControls__Status--InactiveCallParticipantCount"
|
className="CallControls__Status--InactiveCallParticipantCount"
|
||||||
>
|
>
|
||||||
|
@ -58,7 +58,7 @@ export function CallParticipantCount({
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
aria-label={i18n('icu:calling__participants', {
|
aria-label={i18n('icu:calling__participants', {
|
||||||
people: String(count),
|
people: count,
|
||||||
})}
|
})}
|
||||||
className="CallControls__Status--ParticipantCount"
|
className="CallControls__Status--ParticipantCount"
|
||||||
onClick={toggleParticipants}
|
onClick={toggleParticipants}
|
||||||
|
|
|
@ -59,7 +59,7 @@ export function CallingAdhocCallInfo({
|
||||||
i18n('icu:calling__in-this-call--one')}
|
i18n('icu:calling__in-this-call--one')}
|
||||||
{participants.length > 1 &&
|
{participants.length > 1 &&
|
||||||
i18n('icu:calling__in-this-call--many', {
|
i18n('icu:calling__in-this-call--many', {
|
||||||
people: String(participants.length),
|
people: participants.length,
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -88,7 +88,7 @@ export const CallingParticipantsList = React.memo(
|
||||||
i18n('icu:calling__in-this-call--one')}
|
i18n('icu:calling__in-this-call--one')}
|
||||||
{participants.length > 1 &&
|
{participants.length > 1 &&
|
||||||
i18n('icu:calling__in-this-call--many', {
|
i18n('icu:calling__in-this-call--many', {
|
||||||
people: String(participants.length),
|
people: participants.length,
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -104,7 +104,7 @@ export function CallingPreCallInfo({
|
||||||
subtitle = i18n('icu:calling__pre-call-info--many-people-in-call', {
|
subtitle = i18n('icu:calling__pre-call-info--many-people-in-call', {
|
||||||
first: participantNames[0],
|
first: participantNames[0],
|
||||||
second: participantNames[1],
|
second: participantNames[1],
|
||||||
others: String(participantNames.length - 2),
|
others: participantNames.length - 2,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -171,12 +171,12 @@ export function CallingPreCallInfo({
|
||||||
? i18n('icu:calling__pre-call-info--will-ring-many', {
|
? i18n('icu:calling__pre-call-info--will-ring-many', {
|
||||||
first: memberNames[0],
|
first: memberNames[0],
|
||||||
second: memberNames[1],
|
second: memberNames[1],
|
||||||
others: String(memberNames.length - 2),
|
others: memberNames.length - 2,
|
||||||
})
|
})
|
||||||
: i18n('icu:calling__pre-call-info--will-notify-many', {
|
: i18n('icu:calling__pre-call-info--will-notify-many', {
|
||||||
first: memberNames[0],
|
first: memberNames[0],
|
||||||
second: memberNames[1],
|
second: memberNames[1],
|
||||||
others: String(memberNames.length - 2),
|
others: memberNames.length - 2,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@ function renderUsers(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const count = members.length.toString();
|
const count = members.length;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue