Fix intl syntax

This commit is contained in:
Neeraj Gupta 2023-06-28 19:05:19 +05:30
parent 21ebd3c0db
commit d484563c86
3 changed files with 8 additions and 6 deletions

View file

@ -54,7 +54,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Please contact us at support@ente.io to manage your ${provider} subscription.";
static String m63(count) =>
"{count, plural, Delete one{${count} item} other{${count} items}}";
"${Intl.plural(count, one: 'Delete ${count} item', other: 'Delete ${count} items')}";
static String m11(currentlyDeleting, totalCount) =>
"Deleting ${currentlyDeleting} / ${totalCount}";

View file

@ -2918,10 +2918,12 @@ class S {
);
}
/// `{count, plural, Delete one{{count} item} other{{count} items}}`
String deleteItemCount(Object count) {
return Intl.message(
'{count, plural, Delete one{$count item} other{$count items}}',
/// `{count, plural, =1 {Delete {count} item} other {Delete {count} items}}`
String deleteItemCount(num count) {
return Intl.plural(
count,
one: 'Delete $count item',
other: 'Delete $count items',
name: 'deleteItemCount',
desc: '',
args: [count],

View file

@ -418,7 +418,7 @@
"skip": "Skip",
"updatingFolderSelection": "Updating folder selection...",
"itemCount": "{count, plural, one{{count} item} other{{count} items}}",
"deleteItemCount": "{count, plural, Delete one{{count} item} other{{count} items}}",
"deleteItemCount": "{count, plural, =1 {Delete {count} item} other {Delete {count} items}}",
"duplicateItemsGroup": "{count} files, {formattedSize} each",
"@duplicateItemsGroup" : {
"description": "Display the number of duplicate files and their size",