Fix i18n numbers getting toString()'d

This commit is contained in:
Jamie Kyle 2024-02-29 15:07:50 -08:00 committed by GitHub
parent 9c072c5bc1
commit 2743300597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

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;
}