fix: say "1 of 3 syncs" when one collection of several syncs #34

This commit is contained in:
Linus Rath
2026-09-27 08:50:59 +02:00
parent 84f6b5777e
commit 13d5d1733b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.",
@@ -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,
})