diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e2d5f11d2d..fecffcf770 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -4445,10 +4445,14 @@ }, "icu:GroupV2--admin-approval-bounce--one": { "messageformat": "{joinerName} requested and cancelled their request to join via the group link", - "description": "Shown in timeline or conversation preview when v2 group changes" + "description": "(Deleted 2024/08/20) Shown in timeline or conversation preview when v2 group changes" }, "icu:GroupV2--admin-approval-bounce": { "messageformat": "{joinerName} requested and cancelled {numberOfRequests, number} requests to join via the group link", + "description": "(Deleted 2024/08/20) Shown in timeline or conversation preview when v2 group changes" + }, + "icu:GroupV2--admin-approval-bounce--pluralized": { + "messageformat": "{joinerName} requested and cancelled {numberOfRequests, plural, one {their request} other {# requests}} to join via the group link", "description": "Shown in timeline or conversation preview when v2 group changes" }, "icu:GroupV2--group-link-add--disabled--you": { diff --git a/ts/groupChange.ts b/ts/groupChange.ts index b05902b064..eb91e26dea 100644 --- a/ts/groupChange.ts +++ b/ts/groupChange.ts @@ -747,17 +747,13 @@ function renderChangeDetail( if (detail.type === 'admin-approval-bounce') { const { aci, times, isApprovalPending } = detail; - let firstMessage: T | string; - if (times === 1) { - firstMessage = i18n('icu:GroupV2--admin-approval-bounce--one', { - joinerName: renderContact(aci), - }); - } else { - firstMessage = i18n('icu:GroupV2--admin-approval-bounce', { + const firstMessage = i18n( + 'icu:GroupV2--admin-approval-bounce--pluralized', + { joinerName: renderContact(aci), numberOfRequests: times, - }); - } + } + ); if (!isApprovalPending) { return firstMessage;