Skip to content

Commit 24bf0be

Browse files
authored
feat(validators): Added support for the Dutch language (NL) (#953)
1 parent 761d9eb commit 24bf0be

File tree

5 files changed

+179
-1
lines changed

5 files changed

+179
-1
lines changed

packages/form_builder_validators/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,15 @@ To allow for localization of default error messages within your app, add `FormBu
120120
### Supported languages (default errorText messages)
121121
- Arabic (ar)
122122
- English (en)
123+
- Dutch (nl)
123124
- Farsi/Persian (fa)
124125
- French (fr)
125126
- German (de)
126127
- Hungarian (hu)
127128
- Indonesian (id)
128129
- Italian (it)
129130
- Japanese (ja)
130-
- Korean (ko)
131+
- Korean (ko)
131132
- Polish (pl)
132133
- Portuguese (pt)
133134
- Russian (ru)
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"@@last_modified": "2020-06-19T21:53:39.706877",
3+
"@@locale": "nl",
4+
"requiredErrorText": "Dit veld mag niet leeg zijn.",
5+
"@requiredErrorText": {
6+
"description": "Error Text for required field",
7+
"type": "text",
8+
"placeholders": {}
9+
},
10+
"minErrorText": "De waarde moet groter zijn dan of gelijk aan {min}.",
11+
"@minErrorText": {
12+
"description": "Error Text for required field",
13+
"type": "text",
14+
"placeholders": {
15+
"min": {}
16+
}
17+
},
18+
"minLengthErrorText": "De waarde moet een lengte hebben die groter of gelijk is aan {minLength}",
19+
"@minLengthErrorText": {
20+
"description": "Error Text for required field",
21+
"type": "text",
22+
"placeholders": {
23+
"minLength": {}
24+
}
25+
},
26+
"maxErrorText": "De waarde moet kleiner zijn dan of gelijk aan {max}",
27+
"@maxErrorText": {
28+
"description": "Error Text for required field",
29+
"type": "text",
30+
"placeholders": {
31+
"max": {}
32+
}
33+
},
34+
"maxLengthErrorText": "De waarde moet een lengte hebben die kleiner is dan of gelijk is aan {maxLength}",
35+
"@maxLengthErrorText": {
36+
"description": "Error Text for required field",
37+
"type": "text",
38+
"placeholders": {
39+
"maxLength": {}
40+
}
41+
},
42+
"emailErrorText": "Een geldig e-mailadres is vereist. ",
43+
"@emailErrorText": {
44+
"description": "Error Text for email field",
45+
"type": "text",
46+
"placeholders": {}
47+
},
48+
"integerErrorText": "Dit veld vereist een geheel getal. ",
49+
"@integerErrorText": {
50+
"description": "Error Text for integer validator",
51+
"type": "text",
52+
"placeholders": {}
53+
},
54+
"equalErrorText": "De veldwaarde moet gelijk zijn aan {value}.",
55+
"@equalErrorText": {
56+
"description": "Error Text for equal validator",
57+
"type": "text",
58+
"placeholders": {
59+
"value": {}
60+
}
61+
},
62+
"notEqualErrorText": "De veldwaarde mag niet gelijk zijn aan {value}.",
63+
"@notEqualErrorText": {
64+
"description": "Error Text for not-equal validator",
65+
"type": "text",
66+
"placeholders": {
67+
"value": {}
68+
}
69+
},
70+
"urlErrorText": "Een geldige URL is vereist.",
71+
"@urlErrorText": {
72+
"description": "Error Text for URL field",
73+
"type": "text",
74+
"placeholders": {}
75+
},
76+
"matchErrorText": "De waarde komt niet overeen met het patroon.",
77+
"@matchErrorText": {
78+
"description": "Error Text for pattern field",
79+
"type": "text",
80+
"placeholders": {}
81+
},
82+
"numericErrorText": "De waarde moet numeriek zijn.",
83+
"@numericErrorText": {
84+
"description": "Error Text for numeric field",
85+
"type": "text",
86+
"placeholders": {}
87+
},
88+
"creditCardErrorText": "Een geldig creditcardnummer is vereist. ",
89+
"@creditCardErrorText": {
90+
"description": "Error Text for credit card field",
91+
"type": "text",
92+
"placeholders": {}
93+
},
94+
"ipErrorText": "Een geldig IP-adres is vereist.",
95+
"@ipErrorText": {
96+
"description": "Error Text for IP address field",
97+
"type": "text",
98+
"placeholders": {}
99+
},
100+
"dateStringErrorText": "Een geldige datum is vereist. ",
101+
"@dateStringErrorText": {
102+
"description": "Error Text for date string field",
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
@@ -27,6 +27,7 @@ import 'messages_it.dart' as messages_it;
2727
import 'messages_ja.dart' as messages_ja;
2828
import 'messages_ko.dart' as messages_ko;
2929
import 'messages_messages.dart' as messages_messages;
30+
import 'messages_nl.dart' as messages_nl;
3031
import 'messages_pl.dart' as messages_pl;
3132
import 'messages_pt.dart' as messages_pt;
3233
import 'messages_ru.dart' as messages_ru;
@@ -49,6 +50,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
4950
'ja': () => new Future.value(null),
5051
'ko': () => new Future.value(null),
5152
'messages': () => new Future.value(null),
53+
'nl': () => new Future.value(null),
5254
'pl': () => new Future.value(null),
5355
'pt': () => new Future.value(null),
5456
'ru': () => new Future.value(null),
@@ -84,6 +86,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
8486
return messages_ko.messages;
8587
case 'messages':
8688
return messages_messages.messages;
89+
case 'nl':
90+
return messages_nl.messages;
8791
case 'pl':
8892
return messages_pl.messages;
8993
case 'pt':
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a nl 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 => 'nl';
22+
23+
static String m0(value) => "De veldwaarde moet gelijk zijn aan ${value}.";
24+
25+
static String m1(max) =>
26+
"De waarde moet kleiner zijn dan of gelijk aan ${max}";
27+
28+
static String m2(maxLength) =>
29+
"De waarde moet een lengte hebben die kleiner is dan of gelijk is aan ${maxLength}";
30+
31+
static String m3(min) =>
32+
"De waarde moet groter zijn dan of gelijk aan ${min}.";
33+
34+
static String m4(minLength) =>
35+
"De waarde moet een lengte hebben die groter of gelijk is aan ${minLength}";
36+
37+
static String m5(value) => "De veldwaarde mag niet gelijk zijn aan ${value}.";
38+
39+
final messages = _notInlinedMessages(_notInlinedMessages);
40+
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
41+
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
42+
"Een geldig creditcardnummer is vereist. "),
43+
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
44+
"Een geldige datum is vereist. "),
45+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
46+
"Een geldig e-mailadres is vereist. "),
47+
"equalErrorText": m0,
48+
"integerErrorText": MessageLookupByLibrary.simpleMessage(
49+
"Dit veld vereist een geheel getal. "),
50+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
51+
"Een geldig IP-adres is vereist."),
52+
"matchErrorText": MessageLookupByLibrary.simpleMessage(
53+
"De waarde komt niet overeen met het patroon."),
54+
"maxErrorText": m1,
55+
"maxLengthErrorText": m2,
56+
"minErrorText": m3,
57+
"minLengthErrorText": m4,
58+
"notEqualErrorText": m5,
59+
"numericErrorText": MessageLookupByLibrary.simpleMessage(
60+
"De waarde moet numeriek zijn."),
61+
"requiredErrorText": MessageLookupByLibrary.simpleMessage(
62+
"Dit veld mag niet leeg zijn."),
63+
"urlErrorText":
64+
MessageLookupByLibrary.simpleMessage("Een geldige URL is vereist.")
65+
};
66+
}

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)