Skip to content

Commit 93d574a

Browse files
authored
added Lao language support (#968)
1 parent 3a84dca commit 93d574a

File tree

5 files changed

+175
-0
lines changed

5 files changed

+175
-0
lines changed

packages/form_builder_validators/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ To allow for localization of default error messages within your app, add `FormBu
129129
- Italian (it)
130130
- Japanese (ja)
131131
- Korean (ko)
132+
- Lao (lo)
132133
- Polish (pl)
133134
- Portuguese (pt)
134135
- Russian (ru)
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"@@last_modified": "2022-02-17T13:48:20.938366",
3+
"requiredErrorText": "ແບບຟອມນີ້ບໍ່ສາມາດຫວ່າງເປົ່າໄດ້.",
4+
"@requiredErrorText": {
5+
"description": "Error Text for required validator",
6+
"type": "text",
7+
"placeholders": {}
8+
},
9+
"equalErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງເທົ່າກັບ {value}.",
10+
"@equalErrorText": {
11+
"description": "Error Text for equal validator",
12+
"type": "text",
13+
"placeholders": {
14+
"value": {}
15+
}
16+
},
17+
"notEqualErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງບໍ່ເທົ່າກັບ {value}.",
18+
"@notEqualErrorText": {
19+
"description": "Error Text for not-equal validator",
20+
"type": "text",
21+
"placeholders": {
22+
"value": {}
23+
}
24+
},
25+
"minErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງໃຫຍ່ກວ່າ ຫຼືເທົ່າກັບ {min}.",
26+
"@minErrorText": {
27+
"description": "Error Text for required field",
28+
"type": "text",
29+
"placeholders": {
30+
"min": {}
31+
}
32+
},
33+
"minLengthErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງມີຄວາມຍາວຫຼາຍກວ່າ ຫຼືເທົ່າກັບ {minLength}",
34+
"@minLengthErrorText": {
35+
"description": "Error Text for minLength validator",
36+
"type": "text",
37+
"placeholders": {
38+
"minLength": {}
39+
}
40+
},
41+
"maxErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງນ້ອຍກວ່າ ຫຼືເທົ່າກັບ {max}",
42+
"@maxErrorText": {
43+
"description": "Error Text for max validator",
44+
"type": "text",
45+
"placeholders": {
46+
"max": {}
47+
}
48+
},
49+
"maxLengthErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງມີຄວາມຍາວໜ້ອຍກວ່າ ຫຼືເທົ່າກັບ {maxLength}",
50+
"@maxLengthErrorText": {
51+
"description": "Error Text for required field",
52+
"type": "text",
53+
"placeholders": {
54+
"maxLength": {}
55+
}
56+
},
57+
"emailErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງ ອີເມວ໌.",
58+
"@emailErrorText": {
59+
"description": "Error Text for email validator",
60+
"type": "text",
61+
"placeholders": {}
62+
},
63+
"urlErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງ URL.",
64+
"@urlErrorText": {
65+
"description": "Error Text for URL validator",
66+
"type": "text",
67+
"placeholders": {}
68+
},
69+
"matchErrorText": "ຄ່າບໍ່ຖືກຕ້ອງຕາມຮູບແບບທີ່ກຳນົດ.",
70+
"@matchErrorText": {
71+
"description": "Error Text for pattern validator",
72+
"type": "text",
73+
"placeholders": {}
74+
},
75+
"numericErrorText": "ຄ່າທີ່ປ້ອນໃສ່ຕ້ອງເປັນໂຕເລກເທົ່ານັ້ນ.",
76+
"@numericErrorText": {
77+
"description": "Error Text for numeric validator",
78+
"type": "text",
79+
"placeholders": {}
80+
},
81+
"integerErrorText": "ຄ່າທີ່ປ້ອນໃສ່ຕ້ອງເປັນໂຕເລກຖ້ວນເທົ່ານັ້ນ.",
82+
"@integerErrorText": {
83+
"description": "Error Text for integer validator",
84+
"type": "text",
85+
"placeholders": {}
86+
},
87+
"creditCardErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງເລກບັດເຄຣດິດ.",
88+
"@creditCardErrorText": {
89+
"description": "Error Text for credit card validator",
90+
"type": "text",
91+
"placeholders": {}
92+
},
93+
"ipErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງເລກ IP.",
94+
"@ipErrorText": {
95+
"description": "Error Text for IP address validator",
96+
"type": "text",
97+
"placeholders": {}
98+
},
99+
"dateStringErrorText": "ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງວັນທີ.",
100+
"@dateStringErrorText": {
101+
"description": "Error Text for date string validator",
102+
"type": "text",
103+
"placeholders": {}
104+
}
105+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import 'messages_id.dart' as messages_id;
2626
import 'messages_it.dart' as messages_it;
2727
import 'messages_ja.dart' as messages_ja;
2828
import 'messages_ko.dart' as messages_ko;
29+
import 'messages_lo.dart' as messages_lo;
2930
import 'messages_messages.dart' as messages_messages;
3031
import 'messages_nl.dart' as messages_nl;
3132
import 'messages_pl.dart' as messages_pl;
@@ -49,6 +50,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
4950
'it': () => new Future.value(null),
5051
'ja': () => new Future.value(null),
5152
'ko': () => new Future.value(null),
53+
'lo': () => new Future.value(null),
5254
'messages': () => new Future.value(null),
5355
'nl': () => new Future.value(null),
5456
'pl': () => new Future.value(null),
@@ -84,6 +86,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
8486
return messages_ja.messages;
8587
case 'ko':
8688
return messages_ko.messages;
89+
case 'lo':
90+
return messages_lo.messages;
8791
case 'messages':
8892
return messages_messages.messages;
8993
case 'nl':
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 lo 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 => 'lo';
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": MessageLookupByLibrary.simpleMessage(
42+
"ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງວັນທີ."),
43+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
44+
"ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງ ອີເມວ໌."),
45+
"equalErrorText": m0,
46+
"integerErrorText": MessageLookupByLibrary.simpleMessage(
47+
"ຄ່າທີ່ປ້ອນໃສ່ຕ້ອງເປັນໂຕເລກຖ້ວນເທົ່ານັ້ນ."),
48+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
49+
"ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງເລກ IP."),
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": MessageLookupByLibrary.simpleMessage(
60+
"ແບບຟອມນີ້ບໍ່ສາມາດຫວ່າງເປົ່າໄດ້."),
61+
"urlErrorText": MessageLookupByLibrary.simpleMessage(
62+
"ຄ່າໃນຟອມນີ້ຕ້ອງຢູ່ໃນຮູບແບບຂອງ URL.")
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)