Skip to content

Commit 091af26

Browse files
Merge pull request #3 from anycode/main
Czech language support
2 parents f7cac9e + 3a0c02a commit 091af26

File tree

7 files changed

+199
-8
lines changed

7 files changed

+199
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Remove unused dependency
66
* Add web example
77

8+
## [8.2.1] - 20-Jul-2022
9+
10+
* Added Czech language support
11+
812
## [8.2.0] - 12-Jul-2022
913

1014
* Added equalLength validator

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ Available built-in validators include:
5454
* `FormBuilderValidators.maxLength()` - requires the length of the field's value to be less than or equal to the provided maximum length.
5555
* `FormBuilderValidators.min()` - requires the field's value to be greater than or equal to the provided number.
5656
* `FormBuilderValidators.minLength()` - requires the length of the field's value to be greater than or equal to the provided minimum length.
57-
* ``FormBuilderValidators.equalLength()`` - requires the length of the field's value to be equal to the provided minimum length.
57+
* `FormBuilderValidators.equalLength()` - requires the length of the field's value to be equal to the provided minimum length.
5858
* `FormBuilderValidators.numeric()` - requires the field's value to be a valid number.
5959
* `FormBuilderValidators.required()` - requires the field have a non-empty value.
60-
* ``FormBuilderValidators.url()`` - requires the field's value to be a valid url.
60+
* `FormBuilderValidators.url()` - requires the field's value to be a valid url.
6161

6262
### Supported languages
6363

@@ -68,6 +68,7 @@ Validators support default errorText messages in this languages:
6868
- Catalan (ca)
6969
- Chinese Simplified (zh_Hans)
7070
- Chinese Traditional (zh_Hant)
71+
- Czech (cs)
7172
- English (en)
7273
- Estonian (et)
7374
- Dutch (nl)

lib/l10n/intl_cs.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": "cs",
4+
"requiredErrorText": "Pole nemůže být prázdné.",
5+
"@requiredErrorText": {
6+
"description": "Error Text for required validator",
7+
"type": "text",
8+
"placeholders": {}
9+
},
10+
"minErrorText": "Hodnota musí být větší než nebo rovna {min}.",
11+
"@minErrorText": {
12+
"description": "Error Text for required field",
13+
"type": "text",
14+
"placeholders": {
15+
"min": {}
16+
}
17+
},
18+
"minLengthErrorText": "Hodnota musí mít délku větší než nebo rovnu {minLength}",
19+
"@minLengthErrorText": {
20+
"description": "Error Text for minLength validator",
21+
"type": "text",
22+
"placeholders": {
23+
"minLength": {}
24+
}
25+
},
26+
"maxErrorText": "Hodnota musí být menší než nebo rovna {max}.",
27+
"@maxErrorText": {
28+
"description": "Error Text for max validator",
29+
"type": "text",
30+
"placeholders": {
31+
"max": {}
32+
}
33+
},
34+
"maxLengthErrorText": "Hodnota musí mít délku menší než nebo rovnu {maxLength}.",
35+
"@maxLengthErrorText": {
36+
"description": "Error Text for required field",
37+
"type": "text",
38+
"placeholders": {
39+
"maxLength": {}
40+
}
41+
},
42+
"equalLengthErrorText": "Hodnota musí mít délku rovnu {length}",
43+
"@equalLengthErrorText": {
44+
"description": "Error Text for required field",
45+
"type": "text",
46+
"placeholders": {
47+
"length": {}
48+
}
49+
},
50+
"emailErrorText": "Pole vyžaduje platnou e-mailovou adresu.",
51+
"@emailErrorText": {
52+
"description": "Error Text for email validator",
53+
"type": "text",
54+
"placeholders": {}
55+
},
56+
"integerErrorText": "Hodnota musí být celé číslo.",
57+
"@integerErrorText": {
58+
"description": "Error Text for integer validator",
59+
"type": "text",
60+
"placeholders": {}
61+
},
62+
"equalErrorText": "Hodnota se musí rovnat {value}.",
63+
"@equalErrorText": {
64+
"description": "Error Text for equal validator",
65+
"type": "text",
66+
"placeholders": {
67+
"value": {}
68+
}
69+
},
70+
"notEqualErrorText": "Hodnota se nesmí rovnat {value}.",
71+
"@notEqualErrorText": {
72+
"description": "Error Text for not-equal validator",
73+
"type": "text",
74+
"placeholders": {
75+
"value": {}
76+
}
77+
},
78+
"urlErrorText": "Pole vyžaduje platnou adresu URL.",
79+
"@urlErrorText": {
80+
"description": "Error Text for URL validator",
81+
"type": "text",
82+
"placeholders": {}
83+
},
84+
"matchErrorText": "Hodnota neodpovídá vzoru.",
85+
"@matchErrorText": {
86+
"description": "Error Text for pattern validator",
87+
"type": "text",
88+
"placeholders": {}
89+
},
90+
"numericErrorText": "Hodnota musí být číslo.",
91+
"@numericErrorText": {
92+
"description": "Error Text for numeric validator",
93+
"type": "text",
94+
"placeholders": {}
95+
},
96+
"creditCardErrorText": "Pole vyžaduje platné číslo kreditní karty.",
97+
"@creditCardErrorText": {
98+
"description": "Error Text for credit card validator",
99+
"type": "text",
100+
"placeholders": {}
101+
},
102+
"ipErrorText": "Pole vyžaduje platnou IP adresu.",
103+
"@ipErrorText": {
104+
"description": "Error Text for IP address validator",
105+
"type": "text",
106+
"placeholders": {}
107+
},
108+
"dateStringErrorText": "Pole vyžaduje platný zápis data.",
109+
"@dateStringErrorText": {
110+
"description": "Error Text for date string validator",
111+
"type": "text",
112+
"placeholders": {}
113+
}
114+
}

lib/localization/intl/messages_all.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import 'package:intl/src/intl_helpers.dart';
1818
import 'messages_ar.dart' as messages_ar;
1919
import 'messages_bn.dart' as messages_bn;
2020
import 'messages_ca.dart' as messages_ca;
21+
import 'messages_cs.dart' as messages_cs;
2122
import 'messages_de.dart' as messages_de;
2223
import 'messages_en.dart' as messages_en;
2324
import 'messages_es.dart' as messages_es;
@@ -49,6 +50,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
4950
'ar': () => new Future.value(null),
5051
'bn': () => new Future.value(null),
5152
'ca': () => new Future.value(null),
53+
'cs': () => new Future.value(null),
5254
'de': () => new Future.value(null),
5355
'en': () => new Future.value(null),
5456
'es': () => new Future.value(null),
@@ -84,6 +86,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
8486
return messages_bn.messages;
8587
case 'ca':
8688
return messages_ca.messages;
89+
case 'cs':
90+
return messages_cs.messages;
8791
case 'de':
8892
return messages_de.messages;
8993
case 'en':
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a cs 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 => 'cs';
22+
23+
static String m0(value) => "Hodnota se musí rovnat ${value}.";
24+
25+
static String m6(length) => "Hodnota musí mít délku rovnu ${length}";
26+
27+
static String m1(max) => "Hodnota musí být menší než nebo rovna ${max}.";
28+
29+
static String m2(maxLength) =>
30+
"Hodnota musí mít délku menší než nebo rovnu ${maxLength}.";
31+
32+
static String m3(min) => "Hodnota musí být větší než nebo rovna ${min}.";
33+
34+
static String m4(minLength) =>
35+
"Hodnota musí mít délku větší než nebo rovnu ${minLength}";
36+
37+
static String m5(value) => "Hodnota se nesmí rovnat ${value}.";
38+
39+
final messages = _notInlinedMessages(_notInlinedMessages);
40+
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
41+
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
42+
"Pole vyžaduje platné číslo kreditní karty."),
43+
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
44+
"Pole vyžaduje platný zápis data."),
45+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
46+
"Pole vyžaduje platnou e-mailovou adresu."),
47+
"equalErrorText": m0,
48+
"equalLengthErrorText": m6,
49+
"integerErrorText": MessageLookupByLibrary.simpleMessage(
50+
"Hodnota musí být celé číslo."),
51+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
52+
"Pole vyžaduje platnou IP adresu."),
53+
"matchErrorText":
54+
MessageLookupByLibrary.simpleMessage("Hodnota neodpovídá vzoru."),
55+
"maxErrorText": m1,
56+
"maxLengthErrorText": m2,
57+
"minErrorText": m3,
58+
"minLengthErrorText": m4,
59+
"notEqualErrorText": m5,
60+
"numericErrorText":
61+
MessageLookupByLibrary.simpleMessage("Hodnota musí být číslo."),
62+
"requiredErrorText":
63+
MessageLookupByLibrary.simpleMessage("Pole nemůže být prázdné."),
64+
"urlErrorText": MessageLookupByLibrary.simpleMessage(
65+
"Pole vyžaduje platnou adresu URL.")
66+
};
67+
}

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.

pubspec.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ packages:
77
name: _fe_analyzer_shared
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "38.0.0"
10+
version: "43.0.0"
1111
analyzer:
1212
dependency: transitive
1313
description:
1414
name: analyzer
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "3.4.1"
17+
version: "4.3.1"
1818
archive:
1919
dependency: transitive
2020
description:
2121
name: archive
2222
url: "https://pub.dartlang.org"
2323
source: hosted
24-
version: "3.3.0"
24+
version: "3.3.1"
2525
args:
2626
dependency: transitive
2727
description:
@@ -162,7 +162,7 @@ packages:
162162
name: intl_utils
163163
url: "https://pub.dartlang.org"
164164
source: hosted
165-
version: "2.6.1"
165+
version: "2.7.0"
166166
lints:
167167
dependency: transitive
168168
description:
@@ -211,7 +211,7 @@ packages:
211211
name: petitparser
212212
url: "https://pub.dartlang.org"
213213
source: hosted
214-
version: "4.4.0"
214+
version: "5.0.0"
215215
pub_semver:
216216
dependency: transitive
217217
description:
@@ -295,5 +295,5 @@ packages:
295295
source: hosted
296296
version: "3.1.1"
297297
sdks:
298-
dart: ">=2.17.0-206.0.dev <3.0.0"
298+
dart: ">=2.17.0 <3.0.0"
299299
flutter: ">=3.0.0"

0 commit comments

Comments
 (0)