Skip to content

Commit c71ac07

Browse files
committed
Add chinese languages (traditional and simplified)
1 parent f8a9d06 commit c71ac07

File tree

6 files changed

+332
-0
lines changed

6 files changed

+332
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"@@last_modified": "2021-12-24T02:25:04.576038Z",
3+
"requiredErrorText": "此字段不能为空。",
4+
"@requiredErrorText": {
5+
"description": "Error Text for required field",
6+
"type": "text",
7+
"placeholders": {}
8+
},
9+
"equalErrorText": "此字段必须与{value}相符",
10+
"@equalErrorText": {
11+
"type": "text",
12+
"description": "Error Text for equal validator",
13+
"placeholders": {
14+
"value": {}
15+
}
16+
},
17+
"notEqualErrorText": "此字段不得等于{value}",
18+
"@notEqualErrorText": {
19+
"type": "text",
20+
"description": "Error Text for not-equal validator",
21+
"placeholders": {
22+
"value": {}
23+
}
24+
},
25+
"minErrorText": "此字段必须大于或等于{min}",
26+
"@minErrorText": {
27+
"type": "text",
28+
"description": "Error Text for required field",
29+
"placeholders": {
30+
"min": {}
31+
}
32+
},
33+
"minLengthErrorText": "此字段的长度必须大于或等于{minLength}",
34+
"@minLengthErrorText": {
35+
"type": "text",
36+
"description": "Error Text for required field",
37+
"placeholders": {
38+
"minLength": {}
39+
}
40+
},
41+
"maxErrorText": "此字段必须小于或等于{max}",
42+
"@maxErrorText": {
43+
"type": "text",
44+
"description": "Error Text for required field",
45+
"placeholders": {
46+
"max": {}
47+
}
48+
},
49+
"maxLengthErrorText": "此字段的长度必须小于或等于{maxLength}",
50+
"@maxLengthErrorText": {
51+
"type": "text",
52+
"description": "Error Text for required field",
53+
"placeholders": {
54+
"maxLength": {}
55+
}
56+
},
57+
"emailErrorText": "此字段需要有效的电子邮件地址。",
58+
"@emailErrorText": {
59+
"type": "text",
60+
"description": "Error Text for email field",
61+
"placeholders": {}
62+
},
63+
"urlErrorText": "此字段需要有效的URL地址。",
64+
"@urlErrorText": {
65+
"type": "text",
66+
"description": "Error Text for URL field",
67+
"placeholders": {}
68+
},
69+
"matchErrorText": "此字段与格式不匹配。",
70+
"@matchErrorText": {
71+
"type": "text",
72+
"description": "Error Text for pattern field",
73+
"placeholders": {}
74+
},
75+
"numericErrorText": "此字段必须是数字。",
76+
"@numericErrorText": {
77+
"type": "text",
78+
"description": "Error Text for numeric field",
79+
"placeholders": {}
80+
},
81+
"integerErrorText": "此字段需要有效的整数。",
82+
"@integerErrorText": {
83+
"type": "text",
84+
"description": "Error Text for integer validator",
85+
"placeholders": {}
86+
},
87+
"creditCardErrorText": "此字段需要有效的信用卡号码。",
88+
"@creditCardErrorText": {
89+
"type": "text",
90+
"description": "Error Text for credit card field",
91+
"placeholders": {}
92+
},
93+
"dateStringErrorText": "此字段需要有效的日期字符串。",
94+
"@dateStringErrorText": {
95+
"type": "text",
96+
"description": "Error Text for date string field",
97+
"placeholders": {}
98+
},
99+
"ipErrorText": "此字段需要有效的IP。",
100+
"@ipErrorText": {
101+
"type": "text",
102+
"description": "Error Text for IP address field",
103+
"placeholders": {}
104+
}
105+
}
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"@@last_modified": "2021-12-24T02:25:04.576038Z",
3+
"requiredErrorText": "此字段不能為空。",
4+
"@requiredErrorText": {
5+
"description": "Error Text for required field",
6+
"type": "text",
7+
"placeholders": {}
8+
},
9+
"equalErrorText": "此字段必須與{value}相符",
10+
"@equalErrorText": {
11+
"type": "text",
12+
"description": "Error Text for equal validator",
13+
"placeholders": {
14+
"value": {}
15+
}
16+
},
17+
"notEqualErrorText": "此字段不得等於{value}",
18+
"@notEqualErrorText": {
19+
"type": "text",
20+
"description": "Error Text for not-equal validator",
21+
"placeholders": {
22+
"value": {}
23+
}
24+
},
25+
"minErrorText": "此字段必須大於或等於{min}",
26+
"@minErrorText": {
27+
"type": "text",
28+
"description": "Error Text for required field",
29+
"placeholders": {
30+
"min": {}
31+
}
32+
},
33+
"minLengthErrorText": "此字段的長度必須大於或等於{minLength}",
34+
"@minLengthErrorText": {
35+
"type": "text",
36+
"description": "Error Text for required field",
37+
"placeholders": {
38+
"minLength": {}
39+
}
40+
},
41+
"maxErrorText": "此字段必須小於或等於{max}",
42+
"@maxErrorText": {
43+
"type": "text",
44+
"description": "Error Text for required field",
45+
"placeholders": {
46+
"max": {}
47+
}
48+
},
49+
"maxLengthErrorText": "此字段的長度必須小於或等於{maxLength}",
50+
"@maxLengthErrorText": {
51+
"type": "text",
52+
"description": "Error Text for required field",
53+
"placeholders": {
54+
"maxLength": {}
55+
}
56+
},
57+
"emailErrorText": "此字段需要有效的電子郵件地址。",
58+
"@emailErrorText": {
59+
"type": "text",
60+
"description": "Error Text for email field",
61+
"placeholders": {}
62+
},
63+
"urlErrorText": "此字段需要有效的URL地址。",
64+
"@urlErrorText": {
65+
"type": "text",
66+
"description": "Error Text for URL field",
67+
"placeholders": {}
68+
},
69+
"matchErrorText": "此字段與格式不匹配。",
70+
"@matchErrorText": {
71+
"type": "text",
72+
"description": "Error Text for pattern field",
73+
"placeholders": {}
74+
},
75+
"numericErrorText": "此字段必須是數字。",
76+
"@numericErrorText": {
77+
"type": "text",
78+
"description": "Error Text for numeric field",
79+
"placeholders": {}
80+
},
81+
"integerErrorText": "此字段需要有效的整數。",
82+
"@integerErrorText": {
83+
"type": "text",
84+
"description": "Error Text for integer validator",
85+
"placeholders": {}
86+
},
87+
"creditCardErrorText": "此字段需要有效的信用卡號碼。",
88+
"@creditCardErrorText": {
89+
"type": "text",
90+
"description": "Error Text for credit card field",
91+
"placeholders": {}
92+
},
93+
"dateStringErrorText": "此字段需要有效的日期字符串。",
94+
"@dateStringErrorText": {
95+
"type": "text",
96+
"description": "Error Text for date string field",
97+
"placeholders": {}
98+
},
99+
"ipErrorText": "此字段需要有效的IP。",
100+
"@ipErrorText": {
101+
"type": "text",
102+
"description": "Error Text for IP address field",
103+
"placeholders": {}
104+
}
105+
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import 'messages_messages.dart' as messages_messages;
3030
import 'messages_pl.dart' as messages_pl;
3131
import 'messages_pt.dart' as messages_pt;
3232
import 'messages_sk.dart' as messages_sk;
33+
import 'messages_zh_Hans.dart' as messages_zh_hans;
34+
import 'messages_zh_Hant.dart' as messages_zh_hant;
3335

3436
typedef Future<dynamic> LibraryLoader();
3537
Map<String, LibraryLoader> _deferredLibraries = {
@@ -48,6 +50,8 @@ Map<String, LibraryLoader> _deferredLibraries = {
4850
'pl': () => new Future.value(null),
4951
'pt': () => new Future.value(null),
5052
'sk': () => new Future.value(null),
53+
'zh_Hans': () => new Future.value(null),
54+
'zh_Hant': () => new Future.value(null),
5155
};
5256

5357
MessageLookupByLibrary? _findExact(String localeName) {
@@ -82,6 +86,10 @@ MessageLookupByLibrary? _findExact(String localeName) {
8286
return messages_pt.messages;
8387
case 'sk':
8488
return messages_sk.messages;
89+
case 'zh_Hans':
90+
return messages_zh_hans.messages;
91+
case 'zh_Hant':
92+
return messages_zh_hant.messages;
8593
default:
8694
return null;
8795
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a zh_Hans 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 => 'zh_Hans';
22+
23+
static String m0(value) => "此字段必须与${value}相符";
24+
25+
static String m1(max) => "此字段必须小于或等于${max}";
26+
27+
static String m2(maxLength) => "此字段的长度必须小于或等于${maxLength}";
28+
29+
static String m3(min) => "此字段必须大于或等于${min}";
30+
31+
static String m4(minLength) => "此字段的长度必须大于或等于${minLength}";
32+
33+
static String m5(value) => "此字段不得等于${value}";
34+
35+
final messages = _notInlinedMessages(_notInlinedMessages);
36+
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
37+
"creditCardErrorText":
38+
MessageLookupByLibrary.simpleMessage("此字段需要有效的信用卡号码。"),
39+
"dateStringErrorText":
40+
MessageLookupByLibrary.simpleMessage("此字段需要有效的日期字符串。"),
41+
"emailErrorText":
42+
MessageLookupByLibrary.simpleMessage("此字段需要有效的电子邮件地址。"),
43+
"equalErrorText": m0,
44+
"integerErrorText": MessageLookupByLibrary.simpleMessage("此字段需要有效的整数。"),
45+
"ipErrorText": MessageLookupByLibrary.simpleMessage("此字段需要有效的IP。"),
46+
"matchErrorText": MessageLookupByLibrary.simpleMessage("此字段与格式不匹配。"),
47+
"maxErrorText": m1,
48+
"maxLengthErrorText": m2,
49+
"minErrorText": m3,
50+
"minLengthErrorText": m4,
51+
"notEqualErrorText": m5,
52+
"numericErrorText": MessageLookupByLibrary.simpleMessage("此字段必须是数字。"),
53+
"requiredErrorText": MessageLookupByLibrary.simpleMessage("此字段不能为空。"),
54+
"urlErrorText": MessageLookupByLibrary.simpleMessage("此字段需要有效的URL地址。")
55+
};
56+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a zh_Hant 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 => 'zh_Hant';
22+
23+
static String m0(value) => "此字段必須與${value}相符";
24+
25+
static String m1(max) => "此字段必須小於或等於${max}";
26+
27+
static String m2(maxLength) => "此字段的長度必須小於或等於${maxLength}";
28+
29+
static String m3(min) => "此字段必須大於或等於${min}";
30+
31+
static String m4(minLength) => "此字段的長度必須大於或等於${minLength}";
32+
33+
static String m5(value) => "此字段不得等於${value}";
34+
35+
final messages = _notInlinedMessages(_notInlinedMessages);
36+
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
37+
"creditCardErrorText":
38+
MessageLookupByLibrary.simpleMessage("此字段需要有效的信用卡號碼。"),
39+
"dateStringErrorText":
40+
MessageLookupByLibrary.simpleMessage("此字段需要有效的日期字符串。"),
41+
"emailErrorText":
42+
MessageLookupByLibrary.simpleMessage("此字段需要有效的電子郵件地址。"),
43+
"equalErrorText": m0,
44+
"integerErrorText": MessageLookupByLibrary.simpleMessage("此字段需要有效的整數。"),
45+
"ipErrorText": MessageLookupByLibrary.simpleMessage("此字段需要有效的IP。"),
46+
"matchErrorText": MessageLookupByLibrary.simpleMessage("此字段與格式不匹配。"),
47+
"maxErrorText": m1,
48+
"maxLengthErrorText": m2,
49+
"minErrorText": m3,
50+
"minLengthErrorText": m4,
51+
"notEqualErrorText": m5,
52+
"numericErrorText": MessageLookupByLibrary.simpleMessage("此字段必須是數字。"),
53+
"requiredErrorText": MessageLookupByLibrary.simpleMessage("此字段不能為空。"),
54+
"urlErrorText": MessageLookupByLibrary.simpleMessage("此字段需要有效的URL地址。")
55+
};
56+
}

packages/form_builder_validators/lib/localization/l10n.dart

Lines changed: 2 additions & 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)