add file size limit parameter

This commit is contained in:
Salvatore Giordano
2021-07-21 16:49:40 +02:00
parent 5097e4844b
commit f1df4389b5
7 changed files with 40 additions and 27 deletions
@@ -67,9 +67,9 @@ abstract class Translations {
String get instantCommandsLabel;
String get fileTooLargeAfterCompressionError;
String fileTooLargeAfterCompressionError(double limitInMB);
String get fileTooLargeError;
String fileTooLargeError(double limitInMB);
String emojiMatchingQueryText(String query);
@@ -314,14 +314,14 @@ class DefaultTranslations implements Translations {
String get instantCommandsLabel => 'Instant Commands';
@override
String get fileTooLargeAfterCompressionError =>
String fileTooLargeAfterCompressionError(double limitInMB) =>
'The file is too large to upload. '
'The file size limit is 20MB. '
'The file size limit is $limitInMB MB. '
'We tried compressing it, but it was not enough.';
@override
String get fileTooLargeError =>
'The file is too large to upload. The file size limit is 20MB.';
String fileTooLargeError(double limitInMB) =>
'The file is too large to upload. The file size limit is $limitInMB MB.';
@override
String emojiMatchingQueryText(String query) => 'Emoji matching "$query"';