Skip to content

Commit 6229f59

Browse files
Add burmese language support
1 parent 4a3d487 commit 6229f59

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

lib/localization/intl/messages.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +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';
2930
import 'messages_nl.dart';
3031
import 'messages_ne.dart';
3132
import 'messages_pl.dart';
@@ -143,6 +144,7 @@ abstract class FormBuilderLocalizationsImpl {
143144
Locale('lo'),
144145
Locale('mn'),
145146
Locale('ms'),
147+
Locale('my'),
146148
Locale('nl'),
147149
Locale('ne'),
148150
Locale('pl'),
@@ -266,7 +268,7 @@ class _FormBuilderLocalizationsImplDelegate extends LocalizationsDelegate<FormBu
266268
}
267269

268270
@override
269-
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', 'ne', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sw', 'ta', 'th', 'tr', 'uk', 'zh'].contains(locale.languageCode);
271+
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);
270272

271273
@override
272274
bool shouldReload(_FormBuilderLocalizationsImplDelegate old) => false;
@@ -307,6 +309,7 @@ FormBuilderLocalizationsImpl lookupFormBuilderLocalizationsImpl(Locale locale) {
307309
case 'lo': return FormBuilderLocalizationsImplLo();
308310
case 'mn': return FormBuilderLocalizationsImplMn();
309311
case 'ms': return FormBuilderLocalizationsImplMs();
312+
case 'my': return FormBuilderLocalizationsImplMy();
310313
case 'nl': return FormBuilderLocalizationsImplNl();
311314
case 'ne': return FormBuilderLocalizationsImplNe();
312315
case 'pl': return FormBuilderLocalizationsImplPl();
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 Burmese (`my`).
4+
class FormBuilderLocalizationsImplMy extends FormBuilderLocalizationsImpl {
5+
FormBuilderLocalizationsImplMy([String locale = 'en']) : super(locale);
6+
7+
@override
8+
String get requiredErrorText => 'ဤအကွက်သည် ဗလာမဖြစ်နိုင်ပါ။';
9+
10+
@override
11+
String minErrorText(Object min) {
12+
return 'တန်ဖိုးထက် ကြီးသည် သို့မဟုတ် ညီမျှရပါမည်။ $min.';
13+
}
14+
15+
@override
16+
String minLengthErrorText(Object minLength) {
17+
return 'တန်ဖိုးသည် အရှည်ထက် ကြီးသည် သို့မဟုတ် ညီမျှရပါမည်။ $minLength';
18+
}
19+
20+
@override
21+
String maxErrorText(Object max) {
22+
return 'တန်ဖိုးထက် နည်းသည် သို့မဟုတ် ညီမျှရပါမည်။ $max';
23+
}
24+
25+
@override
26+
String maxLengthErrorText(Object maxLength) {
27+
return 'တန်ဖိုးသည် အရှည်ထက်နည်းသော သို့မဟုတ် ညီမျှရပါမည်။ $maxLength';
28+
}
29+
30+
@override
31+
String equalLengthErrorText(Object length) {
32+
return 'တန်ဖိုးနှင့် ညီမျှသော အလျားရှိရမည်။ $length';
33+
}
34+
35+
@override
36+
String get emailErrorText => 'ဤအကွက်တွင် မှန်ကန်သော အီးမေးလ်လိပ်စာတစ်ခု လိုအပ်ပါသည်။';
37+
38+
@override
39+
String get integerErrorText => 'ဤအကွက်သည် မှန်ကန်သော ကိန်းပြည့်တစ်ခု လိုအပ်သည်။';
40+
41+
@override
42+
String equalErrorText(Object value) {
43+
return 'ဤအကွက်တန်ဖိုးသည် တူညီရပါမည်။ $value.';
44+
}
45+
46+
@override
47+
String notEqualErrorText(Object value) {
48+
return 'ဤအကွက်တန်ဖိုးသည် တူညီမည်မဟုတ်ပါ။ $value.';
49+
}
50+
51+
@override
52+
String get urlErrorText => 'ဤအကွက်သည် မှန်ကန်သော URL လိပ်စာတစ်ခု လိုအပ်သည်။';
53+
54+
@override
55+
String get matchErrorText => 'တန်ဖိုးသည် ပုံစံနှင့် မကိုက်ညီပါ။';
56+
57+
@override
58+
String get numericErrorText => 'တန်ဖိုးသည် ဂဏန်းဖြစ်ရမည်။';
59+
60+
@override
61+
String get creditCardErrorText => 'ဤအကွက်တွင် မှန်ကန်သော ခရက်ဒစ်ကတ်နံပါတ်တစ်ခု လိုအပ်သည်။';
62+
63+
@override
64+
String get ipErrorText => 'ဤအကွက်သည် တရားဝင် IP လိုအပ်သည်။';
65+
66+
@override
67+
String get dateStringErrorText => 'ဤအကွက်တွင် မှန်ကန်သော ရက်စွဲစာကြောင်း လိုအပ်သည်။';
68+
}

0 commit comments

Comments
 (0)