Skip to content

Commit 6457bba

Browse files
Merge branch 'main' into main
2 parents bda77c2 + 9bdda52 commit 6457bba

File tree

6 files changed

+275
-7
lines changed

6 files changed

+275
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Available built-in validators include:
6666

6767
Validators support default errorText messages in this languages:
6868

69+
- Albanian (al)
6970
- Arabic (ar)
7071
- Bangla (bn)
7172
- Bosnian (bs)
@@ -101,6 +102,7 @@ Validators support default errorText messages in this languages:
101102
- Turkish (tr)
102103
- Malay (ms)
103104
- Mongolian (mn)
105+
- Vietnamese (vi)
104106

105107
And you can still add your custom error messages.
106108

lib/l10n/intl_al.arb

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"@@last_modified": "2020-06-19T21:53:39.706877",
3+
"@@locale": "en",
4+
"requiredErrorText": "Kjo fushë nuk mund të jetë bosh.",
5+
"@requiredErrorText": {
6+
"description": "Error Text for required field",
7+
"type": "text",
8+
"placeholders": {}
9+
},
10+
"minErrorText": "Vlera duhet te jete me e madhe ose e barabarte me {min}.",
11+
"@minErrorText": {
12+
"description": "Error Text for required field",
13+
"type": "text",
14+
"placeholders": {
15+
"min": {}
16+
}
17+
},
18+
"minLengthErrorText": "Vlera duhet të ketë një gjatësi më të madhe ose të barabartë me {minLength}",
19+
"@minLengthErrorText": {
20+
"description": "Error Text for required field",
21+
"type": "text",
22+
"placeholders": {
23+
"minLength": {}
24+
}
25+
},
26+
"maxErrorText": "Vlera duhet të jetë më e vogël ose e barabartë me {max}",
27+
"@maxErrorText": {
28+
"description": "Error Text for required field",
29+
"type": "text",
30+
"placeholders": {
31+
"max": {}
32+
}
33+
},
34+
"maxLengthErrorText": "Vlera duhet të ketë një gjatësi më të vogël ose të barabartë me {maxLength}",
35+
"@maxLengthErrorText": {
36+
"description": "Error Text for required field",
37+
"type": "text",
38+
"placeholders": {
39+
"maxLength": {}
40+
}
41+
},
42+
"equalLengthErrorText": "Vlera duhet të ketë nje gjatësi të barabartë me {length}",
43+
"@equalLengthErrorText": {
44+
"description": "Error Text for required field",
45+
"type": "text",
46+
"placeholders": {
47+
"length": {}
48+
}
49+
},
50+
"emailErrorText": "Kjo fushe kërkon një adresë e E-mail-i të vlefshëme.",
51+
"@emailErrorText": {
52+
"description": "Error Text for email field",
53+
"type": "text",
54+
"placeholders": {}
55+
},
56+
"integerErrorText": "Kjo fushe kërkon një numër të plotë të vlefshëm.",
57+
"@integerErrorText": {
58+
"description": "Error Text for integer validator",
59+
"type": "text",
60+
"placeholders": {}
61+
},
62+
"equalErrorText": "Kjo vlerë duhet të jetë e barabartë me {value}.",
63+
"@equalErrorText": {
64+
"description": "Error Text for equal validator",
65+
"type": "text",
66+
"placeholders": {
67+
"value": {}
68+
}
69+
},
70+
"notEqualErrorText": "Kjo vlerë nuk duhet të jetë e barabartë me {value}.",
71+
"@notEqualErrorText": {
72+
"description": "Error Text for not-equal validator",
73+
"type": "text",
74+
"placeholders": {
75+
"value": {}
76+
}
77+
},
78+
"urlErrorText": "Kjo fushe kërkon një adresë URL të vlefshme.",
79+
"@urlErrorText": {
80+
"description": "Error Text for URL field",
81+
"type": "text",
82+
"placeholders": {}
83+
},
84+
"matchErrorText": "Vlera nuk përputhet me shabllonin.",
85+
"@matchErrorText": {
86+
"description": "Error Text for pattern field",
87+
"type": "text",
88+
"placeholders": {}
89+
},
90+
"numericErrorText": "Vlera duhet të jetë numerike.",
91+
"@numericErrorText": {
92+
"description": "Error Text for numeric field",
93+
"type": "text",
94+
"placeholders": {}
95+
},
96+
"creditCardErrorText": "Kjo fushë kërkon një numër të vlefshëm per karten e kreditit.",
97+
"@creditCardErrorText": {
98+
"description": "Error Text for credit card field",
99+
"type": "text",
100+
"placeholders": {}
101+
},
102+
"ipErrorText": "Kjo fushë kërkon një IP të vlefshme.",
103+
"@ipErrorText": {
104+
"description": "Error Text for IP address field",
105+
"type": "text",
106+
"placeholders": {}
107+
},
108+
"dateStringErrorText": "Kjo fushë kërkon një date të vlefshme.",
109+
"@dateStringErrorText": {
110+
"description": "Error Text for date string field",
111+
"type": "text",
112+
"placeholders": {}
113+
}
114+
}

lib/l10n/intl_vi.arb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"@@locale": "vi",
3+
"requiredErrorText": "Không được bỏ trống.",
4+
"minErrorText": "Giá trị phải lớn hơn hoặc bằng {min}.",
5+
"minLengthErrorText": "Độ dài phải lớn hơn hoặc bằng {minLength}",
6+
"maxErrorText": "Giá trị phải nhỏ hơn hoặc bằng {max}",
7+
"maxLengthErrorText": "Độ dài phải nhỏ hơn hoặc bằng {maxLength}",
8+
"equalLengthErrorText": "Độ dài phải bằng {length}",
9+
"emailErrorText": "Nhập đúng email.",
10+
"integerErrorText": "Yêu cầu nhập một số nguyên.",
11+
"equalErrorText": "Bắt buộc bằng {value}.",
12+
"notEqualErrorText": "Bắt buộc khác {value}.",
13+
"urlErrorText": "Nhập đúng địa chỉ URL.",
14+
"matchErrorText": "Giá trị không khớp.",
15+
"numericErrorText": "Yêu cầu nhập một số.",
16+
"creditCardErrorText": "Yêu cầu nhập đúng số thẻ tín dụng.",
17+
"ipErrorText": "Yêu cầu nhập đúng địa chỉ IP.",
18+
"dateStringErrorText": "Yêu cầu nhập đúng định dạng ngày."
19+
}

lib/localization/intl/messages.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import 'messages_ko.dart';
2626
import 'messages_lo.dart';
2727
import 'messages_mn.dart';
2828
import 'messages_ms.dart';
29-
import 'messages_my.dart';
3029
import 'messages_nl.dart';
31-
import 'messages_ne.dart';
3230
import 'messages_pl.dart';
3331
import 'messages_pt.dart';
3432
import 'messages_ro.dart';
@@ -40,6 +38,7 @@ import 'messages_ta.dart';
4038
import 'messages_th.dart';
4139
import 'messages_tr.dart';
4240
import 'messages_uk.dart';
41+
import 'messages_vi.dart';
4342
import 'messages_zh.dart';
4443

4544
/// Callers can lookup localized strings with an instance of FormBuilderLocalizationsImpl
@@ -144,9 +143,7 @@ abstract class FormBuilderLocalizationsImpl {
144143
Locale('lo'),
145144
Locale('mn'),
146145
Locale('ms'),
147-
Locale('my'),
148146
Locale('nl'),
149-
Locale('ne'),
150147
Locale('pl'),
151148
Locale('pt'),
152149
Locale('ro'),
@@ -158,6 +155,7 @@ abstract class FormBuilderLocalizationsImpl {
158155
Locale('th'),
159156
Locale('tr'),
160157
Locale('uk'),
158+
Locale('vi'),
161159
Locale('zh'),
162160
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant')
163161
];
@@ -280,7 +278,7 @@ class _FormBuilderLocalizationsImplDelegate extends LocalizationsDelegate<FormBu
280278
}
281279

282280
@override
283-
bool isSupported(Locale locale) => <String>['ar', 'bn', 'bs', 'ca', 'cs', 'de', 'el', 'en', 'es', 'et', 'fa', 'fr', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lo', 'mn', 'ms', 'my', 'nl', 'ne', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sw', 'ta', 'th', 'tr', 'uk', 'zh'].contains(locale.languageCode);
281+
bool isSupported(Locale locale) => <String>['ar', 'bn', 'bs', 'ca', 'cs', 'de', 'el', 'en', 'es', 'et', 'fa', 'fr', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lo', 'mn', 'ms', 'nl', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sw', 'ta', 'th', 'tr', 'uk', 'vi', 'zh'].contains(locale.languageCode);
284282

285283
@override
286284
bool shouldReload(_FormBuilderLocalizationsImplDelegate old) => false;
@@ -321,9 +319,7 @@ FormBuilderLocalizationsImpl lookupFormBuilderLocalizationsImpl(Locale locale) {
321319
case 'lo': return FormBuilderLocalizationsImplLo();
322320
case 'mn': return FormBuilderLocalizationsImplMn();
323321
case 'ms': return FormBuilderLocalizationsImplMs();
324-
case 'my': return FormBuilderLocalizationsImplMy();
325322
case 'nl': return FormBuilderLocalizationsImplNl();
326-
case 'ne': return FormBuilderLocalizationsImplNe();
327323
case 'pl': return FormBuilderLocalizationsImplPl();
328324
case 'pt': return FormBuilderLocalizationsImplPt();
329325
case 'ro': return FormBuilderLocalizationsImplRo();
@@ -335,6 +331,7 @@ FormBuilderLocalizationsImpl lookupFormBuilderLocalizationsImpl(Locale locale) {
335331
case 'th': return FormBuilderLocalizationsImplTh();
336332
case 'tr': return FormBuilderLocalizationsImplTr();
337333
case 'uk': return FormBuilderLocalizationsImplUk();
334+
case 'vi': return FormBuilderLocalizationsImplVi();
338335
case 'zh': return FormBuilderLocalizationsImplZh();
339336
}
340337

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import 'messages.dart';
2+
3+
/// The translations for Albanian (`al`).
4+
class FormBuilderLocalizationsImplAl extends FormBuilderLocalizationsImpl {
5+
FormBuilderLocalizationsImplAl([String locale = 'al']) : super(locale);
6+
7+
@override
8+
String get requiredErrorText => 'Kjo fushë nuk mund të jetë bosh.';
9+
10+
@override
11+
String minErrorText(Object min) {
12+
return 'Vlera duhet te jete me e madhe ose e barabarte me $min.';
13+
}
14+
15+
@override
16+
String minLengthErrorText(Object minLength) {
17+
return 'Vlera duhet të ketë një gjatësi më të madhe ose të barabartë me $minLength';
18+
}
19+
20+
@override
21+
String maxErrorText(Object max) {
22+
return 'Vlera duhet të jetë më e vogël ose e barabartë me $max';
23+
}
24+
25+
@override
26+
String maxLengthErrorText(Object maxLength) {
27+
return 'Vlera duhet të ketë një gjatësi më të vogël ose të barabartë me $maxLength';
28+
}
29+
30+
@override
31+
String equalLengthErrorText(Object length) {
32+
return 'Vlera duhet të ketë nje gjatësi të barabartë me $length';
33+
}
34+
35+
@override
36+
String get emailErrorText => 'Kjo fushe kërkon një adresë e E-mail-i të vlefshëme.';
37+
38+
@override
39+
String get integerErrorText => 'Kjo fushe kërkon një numër të plotë të vlefshëm.';
40+
41+
@override
42+
String equalErrorText(Object value) {
43+
return 'Kjo vlerë duhet të jetë e barabartë me $value.';
44+
}
45+
46+
@override
47+
String notEqualErrorText(Object value) {
48+
return 'Kjo vlerë nuk duhet të jetë e barabartë me $value.';
49+
}
50+
51+
@override
52+
String get urlErrorText => 'Kjo fushe kërkon një adresë URL të vlefshme.';
53+
54+
@override
55+
String get matchErrorText => 'Vlera nuk përputhet me shabllonin.';
56+
57+
@override
58+
String get numericErrorText => 'Vlera duhet të jetë numerike.';
59+
60+
@override
61+
String get creditCardErrorText => 'Kjo fushë kërkon një numër të vlefshëm per karten e kreditit.';
62+
63+
@override
64+
String get ipErrorText => 'Kjo fushë kërkon një IP të vlefshme.';
65+
66+
@override
67+
String get dateStringErrorText => 'Kjo fushë kërkon një date të vlefshme.';
68+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import 'messages.dart';
2+
3+
/// The translations for Vietnamese (`vi`).
4+
class FormBuilderLocalizationsImplVi extends FormBuilderLocalizationsImpl {
5+
FormBuilderLocalizationsImplVi([String locale = 'vi']) : super(locale);
6+
7+
@override
8+
String get requiredErrorText => 'Không được bỏ trống.';
9+
10+
@override
11+
String minErrorText(Object min) {
12+
return 'Giá trị phải lớn hơn hoặc bằng $min.';
13+
}
14+
15+
@override
16+
String minLengthErrorText(Object minLength) {
17+
return 'Độ dài phải lớn hơn hoặc bằng $minLength';
18+
}
19+
20+
@override
21+
String maxErrorText(Object max) {
22+
return 'Giá trị phải nhỏ hơn hoặc bằng $max';
23+
}
24+
25+
@override
26+
String maxLengthErrorText(Object maxLength) {
27+
return 'Độ dài phải nhỏ hơn hoặc bằng $maxLength';
28+
}
29+
30+
@override
31+
String equalLengthErrorText(Object length) {
32+
return 'Độ dài phải bằng $length';
33+
}
34+
35+
@override
36+
String get emailErrorText => 'Nhập đúng email.';
37+
38+
@override
39+
String get integerErrorText => 'Yêu cầu nhập một số nguyên.';
40+
41+
@override
42+
String equalErrorText(Object value) {
43+
return 'Bắt buộc bằng $value.';
44+
}
45+
46+
@override
47+
String notEqualErrorText(Object value) {
48+
return 'Bắt buộc khác $value.';
49+
}
50+
51+
@override
52+
String get urlErrorText => 'Nhập đúng địa chỉ URL.';
53+
54+
@override
55+
String get matchErrorText => 'Giá trị không khớp.';
56+
57+
@override
58+
String get numericErrorText => 'Yêu cầu nhập một số.';
59+
60+
@override
61+
String get creditCardErrorText => 'Yêu cầu nhập đúng số thẻ tín dụng.';
62+
63+
@override
64+
String get ipErrorText => 'Yêu cầu nhập đúng địa chỉ IP.';
65+
66+
@override
67+
String get dateStringErrorText => 'Yêu cầu nhập đúng định dạng ngày.';
68+
}

0 commit comments

Comments
 (0)