feat(ui, localization): Move attachment limit exceeded error to translations
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -381,6 +381,10 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get replyToMessageLabel => 'Reply to Message';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) =>
|
||||
'Attachment limit exceeded, limit: $limit';
|
||||
}
|
||||
|
||||
void main() async {
|
||||
|
||||
@@ -357,4 +357,8 @@ class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get replyToMessageLabel => 'Reply to Message';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) =>
|
||||
'Attachment limit exceeded, limit: $limit';
|
||||
}
|
||||
|
||||
@@ -362,4 +362,10 @@ class StreamChatLocalizationsEs extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get replyToMessageLabel => 'Responder al Mensaje';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) {
|
||||
// TODO: implement attachmentLimitExceedError
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,4 +361,10 @@ class StreamChatLocalizationsFr extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get replyToMessageLabel => 'Répondre au Message';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) {
|
||||
// TODO: implement attachmentLimitExceedError
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -356,4 +356,10 @@ class StreamChatLocalizationsHi extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get replyToMessageLabel => 'संदेश का जवाब';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) {
|
||||
// TODO: implement attachmentLimitExceedError
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,4 +358,10 @@ Il file è troppo grande per essere caricato. Il limite è di $limitInMB MB.''';
|
||||
|
||||
@override
|
||||
String get replyToMessageLabel => 'Rispondi al messaggio';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) {
|
||||
// TODO: implement attachmentLimitExceedError
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,6 +177,7 @@ void main() {
|
||||
expect(localizations.ofText, isNotNull);
|
||||
expect(localizations.fileText, isNotNull);
|
||||
expect(localizations.replyToMessageLabel, isNotNull);
|
||||
expect(localizations.attachmentLimitExceedError(3), isNotNull);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user