Skip to content

Commit 4d181fd

Browse files
committed
2 parents a9d742b + 70aeacb commit 4d181fd

File tree

5 files changed

+176
-0
lines changed

5 files changed

+176
-0
lines changed

packages/form_builder_validators/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ To allow for localization of default error messages within your app, add `FormBu
119119
```
120120
### Supported languages (default errorText messages)
121121
- Arabic (ar)
122+
- Bangla (bn)
122123
- Catalan (ca)
123124
- Chinese Simplified (zh_Hans)
124125
- Chinese Traditional (zh_Hant)
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"@@last_modified": "2022-04-04T10:09:54.938366",
3+
"@@locale": "bn",
4+
"requiredErrorText": "খালি রাখা যাবে না।",
5+
"@requiredErrorText": {
6+
"description": "Error Text for required validator",
7+
"type": "text",
8+
"placeholders": {}
9+
},
10+
"equalErrorText": "মান {value} সমান হতে হবে।",
11+
"@equalErrorText": {
12+
"description": "Error Text for equal validator",
13+
"type": "text",
14+
"placeholders": {
15+
"value": {}
16+
}
17+
},
18+
"notEqualErrorText": "মান {value} এর সমান হওয়া উচিত নয়।",
19+
"@notEqualErrorText": {
20+
"description": "Error Text for not-equal validator",
21+
"type": "text",
22+
"placeholders": {
23+
"value": {}
24+
}
25+
},
26+
"minErrorText": "মান অবশ্যই {min} এর থেকে বেশি বা সমান হতে হবে।",
27+
"@minErrorText": {
28+
"description": "Error Text for required field",
29+
"type": "text",
30+
"placeholders": {
31+
"min": {}
32+
}
33+
},
34+
"minLengthErrorText": "মান অবশ্যই {minLength} এর চেয়ে বেশি বা সমান সংখ্যা হতে হবে।",
35+
"@minLengthErrorText": {
36+
"description": "Error Text for minLength validator",
37+
"type": "text",
38+
"placeholders": {
39+
"minLength": {}
40+
}
41+
},
42+
"maxErrorText": "মান অবশ্যই {max} এর কম বা সমান হতে হবে।",
43+
"@maxErrorText": {
44+
"description": "Error Text for max validator",
45+
"type": "text",
46+
"placeholders": {
47+
"max": {}
48+
}
49+
},
50+
"maxLengthErrorText": "মান অবশ্যই {maxLength} এর থেকে কম বা সমান সংখ্যা হতে হবে।",
51+
"@maxLengthErrorText": {
52+
"description": "Error Text for required field",
53+
"type": "text",
54+
"placeholders": {
55+
"maxLength": {}
56+
}
57+
},
58+
"emailErrorText": "একটি বৈধ ইমেল আইডি প্রয়োজন।",
59+
"@emailErrorText": {
60+
"description": "Error Text for email validator",
61+
"type": "text",
62+
"placeholders": {}
63+
},
64+
"urlErrorText": "একটি বৈধ ওয়েব এড্রেস প্রয়োজন।",
65+
"@urlErrorText": {
66+
"description": "Error Text for URL validator",
67+
"type": "text",
68+
"placeholders": {}
69+
},
70+
"matchErrorText": "মান প্যাটার্নের সাথে মেলে না।",
71+
"@matchErrorText": {
72+
"description": "Error Text for pattern validator",
73+
"type": "text",
74+
"placeholders": {}
75+
},
76+
"numericErrorText": "মান অবশ্যই সংখ্যায় হতে হবে।",
77+
"@numericErrorText": {
78+
"description": "Error Text for numeric validator",
79+
"type": "text",
80+
"placeholders": {}
81+
},
82+
"integerErrorText": "মান অবশ্যই একটি পূর্ণসংখ্যা হতে হবে।",
83+
"@integerErrorText": {
84+
"description": "Error Text for integer validator",
85+
"type": "text",
86+
"placeholders": {}
87+
},
88+
"creditCardErrorText": "বৈধ ক্রেডিট কার্ড নম্বর প্রয়োজন।",
89+
"@creditCardErrorText": {
90+
"description": "Error Text for credit card validator",
91+
"type": "text",
92+
"placeholders": {}
93+
},
94+
"ipErrorText": "একটি বৈধ আইপি এড্রেস প্রয়োজন।",
95+
"@ipErrorText": {
96+
"description": "Error Text for IP address validator",
97+
"type": "text",
98+
"placeholders": {}
99+
},
100+
"dateStringErrorText": "একটি বৈধ তারিখ প্রয়োজন।",
101+
"@dateStringErrorText": {
102+
"description": "Error Text for date string validator",
103+
"type": "text",
104+
"placeholders": {}
105+
}
106+
}

packages/form_builder_validators/lib/localization/intl/messages_all.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import 'package:intl/message_lookup_by_library.dart';
1616
import 'package:intl/src/intl_helpers.dart';
1717

1818
import 'messages_ar.dart' as messages_ar;
19+
import 'messages_bn.dart' as messages_bn;
1920
import 'messages_ca.dart' as messages_ca;
2021
import 'messages_de.dart' as messages_de;
2122
import 'messages_en.dart' as messages_en;
@@ -43,6 +44,7 @@ import 'messages_zh_Hant.dart' as messages_zh_hant;
4344
typedef Future<dynamic> LibraryLoader();
4445
Map<String, LibraryLoader> _deferredLibraries = {
4546
'ar': () => new Future.value(null),
47+
'bn': () => new Future.value(null),
4648
'ca': () => new Future.value(null),
4749
'de': () => new Future.value(null),
4850
'en': () => new Future.value(null),
@@ -72,6 +74,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
7274
switch (localeName) {
7375
case 'ar':
7476
return messages_ar.messages;
77+
case 'bn':
78+
return messages_bn.messages;
7579
case 'ca':
7680
return messages_ca.messages;
7781
case 'de':
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a bn locale. All the
3+
// messages from the main program should be duplicated here with the same
4+
// function name.
5+
6+
// Ignore issues from commonly used lints in this file.
7+
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
8+
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
9+
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
10+
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
11+
// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes
12+
13+
import 'package:intl/intl.dart';
14+
import 'package:intl/message_lookup_by_library.dart';
15+
16+
final messages = new MessageLookup();
17+
18+
typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
19+
20+
class MessageLookup extends MessageLookupByLibrary {
21+
String get localeName => 'bn';
22+
23+
static String m0(value) => "মান ${value} সমান হতে হবে।";
24+
25+
static String m1(max) => "মান অবশ্যই ${max} এর কম বা সমান হতে হবে।";
26+
27+
static String m2(maxLength) =>
28+
"মান অবশ্যই ${maxLength} এর থেকে কম বা সমান সংখ্যা হতে হবে।";
29+
30+
static String m3(min) => "মান অবশ্যই ${min} এর থেকে বেশি বা সমান হতে হবে।";
31+
32+
static String m4(minLength) =>
33+
"মান অবশ্যই ${minLength} এর চেয়ে বেশি বা সমান সংখ্যা হতে হবে।";
34+
35+
static String m5(value) => "মান ${value} এর সমান হওয়া উচিত নয়।";
36+
37+
final messages = _notInlinedMessages(_notInlinedMessages);
38+
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
39+
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
40+
"বৈধ ক্রেডিট কার্ড নম্বর প্রয়োজন।"),
41+
"dateStringErrorText":
42+
MessageLookupByLibrary.simpleMessage("একটি বৈধ তারিখ প্রয়োজন।"),
43+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
44+
"একটি বৈধ ইমেল আইডি প্রয়োজন।"),
45+
"equalErrorText": m0,
46+
"integerErrorText": MessageLookupByLibrary.simpleMessage(
47+
"মান অবশ্যই একটি পূর্ণসংখ্যা হতে হবে।"),
48+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
49+
"একটি বৈধ আইপি এড্রেস প্রয়োজন।"),
50+
"matchErrorText": MessageLookupByLibrary.simpleMessage(
51+
"মান প্যাটার্নের সাথে মেলে না।"),
52+
"maxErrorText": m1,
53+
"maxLengthErrorText": m2,
54+
"minErrorText": m3,
55+
"minLengthErrorText": m4,
56+
"notEqualErrorText": m5,
57+
"numericErrorText": MessageLookupByLibrary.simpleMessage(
58+
"মান অবশ্যই সংখ্যায় হতে হবে।"),
59+
"requiredErrorText":
60+
MessageLookupByLibrary.simpleMessage("খালি রাখা যাবে না।"),
61+
"urlErrorText": MessageLookupByLibrary.simpleMessage(
62+
"একটি বৈধ ওয়েব এড্রেস প্রয়োজন।")
63+
};
64+
}

packages/form_builder_validators/lib/localization/l10n.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)