From 13d5d1733be9fb0aeeff564f0c0ce47d65af3747 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 27 Sep 2026 08:50:59 +0200 Subject: [PATCH] fix: say "1 of 3 syncs" when one collection of several syncs #34 --- locales/rn/en.json | 2 +- src/components/settings/device-sync/DeviceSyncAccountRow.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/rn/en.json b/locales/rn/en.json index dff3fc6b..7a6011c5 100644 --- a/locales/rn/en.json +++ b/locales/rn/en.json @@ -644,7 +644,7 @@ "choose": "Choose", "choose_books_title": "Address books to sync", "choose_calendars_title": "Calendars to sync", - "collections_count": "{selected} of {total} sync", + "collections_count": "{selected, plural, one {# of {total} syncs} other {# of {total} sync}}", "continue": "Continue", "deletions_delete": "Delete on server", "deletions_message": "Many items were deleted on this device at once, so they were not deleted on the server. Delete them there as well, or bring them back on this device.", diff --git a/src/components/settings/device-sync/DeviceSyncAccountRow.tsx b/src/components/settings/device-sync/DeviceSyncAccountRow.tsx index e83b9910..b7053ec9 100644 --- a/src/components/settings/device-sync/DeviceSyncAccountRow.tsx +++ b/src/components/settings/device-sync/DeviceSyncAccountRow.tsx @@ -288,7 +288,7 @@ export function DeviceSyncAccountRow({ account, authority }: Props) { : ''; const collectionsDescription = collections && selectedKeys - ? t('settings.device_sync.collections_count', '{selected} of {total} sync', { + ? t('settings.device_sync.collections_count', '{selected, plural, one {# of {total} syncs} other {# of {total} sync}}', { selected: selectedKeys.length, total: collections.length, })