Skip to content

Commit 8830310

Browse files
committed
2 parents 3db202a + 602e342 commit 8830310

File tree

5 files changed

+172
-1
lines changed

5 files changed

+172
-1
lines changed

example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class MyApp extends StatelessWidget {
2929
Locale('fr', ''),
3030
Locale('ja', ''),
3131
Locale('pt', ''),
32+
Locale('sk', ''),
3233
],
3334
home: HomePage(),
3435
);

lib/l10n/intl_sk.arb

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"@@last_modified": "2020-12-19T01:32:17.166732",
3+
"requiredErrorText": "Toto pole nesmie byť prázdne.",
4+
"@requiredErrorText": {
5+
"description": "Error Text for required validator",
6+
"type": "text",
7+
"placeholders": {}
8+
},
9+
"equalErrorText": "Hodnota tohto poľa musí byť {value}.",
10+
"@equalErrorText": {
11+
"description": "Error Text for equal validator",
12+
"type": "text",
13+
"placeholders": {
14+
"value": {}
15+
}
16+
},
17+
"notEqualErrorText": "Hodnota tohto poľa nesmie byť {value}.",
18+
"@notEqualErrorText": {
19+
"description": "Error Text for not-equal validator",
20+
"type": "text",
21+
"placeholders": {
22+
"value": {}
23+
}
24+
},
25+
"minErrorText": "Hodnota musí byť väčšia alebo rovná ako {min}.",
26+
"@minErrorText": {
27+
"description": "Error Text for required field",
28+
"type": "text",
29+
"placeholders": {
30+
"min": {}
31+
}
32+
},
33+
"minLengthErrorText": "Hodnota musí mať dĺžku aspoň {minLength} znakov.",
34+
"@minLengthErrorText": {
35+
"description": "Error Text for minLength validator",
36+
"type": "text",
37+
"placeholders": {
38+
"minLength": {}
39+
}
40+
},
41+
"maxErrorText": "Hodnota musí byť menšia alebo rovná ako {max}.",
42+
"@maxErrorText": {
43+
"description": "Error Text for max validator",
44+
"type": "text",
45+
"placeholders": {
46+
"max": {}
47+
}
48+
},
49+
"maxLengthErrorText": "Hodnota musí mať dĺžku najviac {maxLength} znakov.",
50+
"@maxLengthErrorText": {
51+
"description": "Error Text for required field",
52+
"type": "text",
53+
"placeholders": {
54+
"maxLength": {}
55+
}
56+
},
57+
"emailErrorText": "Toto pole vyžaduje platnú emailovú adresu.",
58+
"@emailErrorText": {
59+
"description": "Error Text for email validator",
60+
"type": "text",
61+
"placeholders": {}
62+
},
63+
"urlErrorText": "Toto pole vyžaduje platnú URL adresu.",
64+
"@urlErrorText": {
65+
"description": "Error Text for URL validator",
66+
"type": "text",
67+
"placeholders": {}
68+
},
69+
"matchErrorText": "Hodnota nevyhovuje očakávanému tvaru.",
70+
"@matchErrorText": {
71+
"description": "Error Text for pattern validator",
72+
"type": "text",
73+
"placeholders": {}
74+
},
75+
"numericErrorText": "Hodnota musí byť číslo.",
76+
"@numericErrorText": {
77+
"description": "Error Text for numeric validator",
78+
"type": "text",
79+
"placeholders": {}
80+
},
81+
"integerErrorText": "Hodnota musí byť celé číslo.",
82+
"@integerErrorText": {
83+
"description": "Error Text for integer validator",
84+
"type": "text",
85+
"placeholders": {}
86+
},
87+
"creditCardErrorText": "Toto pole vyžaduje platné číslo platobnej karty.",
88+
"@creditCardErrorText": {
89+
"description": "Error Text for credit card validator",
90+
"type": "text",
91+
"placeholders": {}
92+
},
93+
"ipErrorText": "Toto pole vyžaduje platnú IP adresu.",
94+
"@ipErrorText": {
95+
"description": "Error Text for IP address validator",
96+
"type": "text",
97+
"placeholders": {}
98+
},
99+
"dateStringErrorText": "Toto pole vyžaduje platný dátum.",
100+
"@dateStringErrorText": {
101+
"description": "Error Text for date string validator",
102+
"type": "text",
103+
"placeholders": {}
104+
}
105+
}

lib/l10n/messages_all.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import 'messages_fr.dart' as messages_fr;
2121
import 'messages_ja.dart' as messages_ja;
2222
import 'messages_messages.dart' as messages_messages;
2323
import 'messages_pt.dart' as messages_pt;
24+
import 'messages_sk.dart' as messages_sk;
2425

2526
typedef Future<dynamic> LibraryLoader();
2627
Map<String, LibraryLoader> _deferredLibraries = {
@@ -30,6 +31,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
3031
'ja': () => new Future.value(null),
3132
'messages': () => new Future.value(null),
3233
'pt': () => new Future.value(null),
34+
'sk': () => new Future.value(null),
3335
};
3436

3537
MessageLookupByLibrary _findExact(String localeName) {
@@ -46,6 +48,8 @@ MessageLookupByLibrary _findExact(String localeName) {
4648
return messages_messages.messages;
4749
case 'pt':
4850
return messages_pt.messages;
51+
case 'sk':
52+
return messages_sk.messages;
4953
default:
5054
return null;
5155
}

lib/l10n/messages_sk.dart

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a sk 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
11+
12+
import 'package:intl/intl.dart';
13+
import 'package:intl/message_lookup_by_library.dart';
14+
15+
final messages = new MessageLookup();
16+
17+
typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
18+
19+
class MessageLookup extends MessageLookupByLibrary {
20+
String get localeName => 'sk';
21+
22+
static m0(value) => "Hodnota tohto poľa musí byť ${value}.";
23+
24+
static m1(max) => "Hodnota musí byť menšia alebo rovná ako ${max}.";
25+
26+
static m2(maxLength) => "Hodnota musí mať dĺžku najviac ${maxLength} znakov.";
27+
28+
static m3(min) => "Hodnota musí byť väčšia alebo rovná ako ${min}.";
29+
30+
static m4(minLength) => "Hodnota musí mať dĺžku aspoň ${minLength} znakov.";
31+
32+
static m5(value) => "Hodnota tohto poľa nesmie byť ${value}.";
33+
34+
final messages = _notInlinedMessages(_notInlinedMessages);
35+
static _notInlinedMessages(_) => <String, Function>{
36+
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
37+
"Toto pole vyžaduje platné číslo platobnej karty."),
38+
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
39+
"Toto pole vyžaduje platný dátum."),
40+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
41+
"Toto pole vyžaduje platnú emailovú adresu."),
42+
"equalErrorText": m0,
43+
"integerErrorText": MessageLookupByLibrary.simpleMessage(
44+
"Hodnota musí byť celé číslo."),
45+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
46+
"Toto pole vyžaduje platnú IP adresu."),
47+
"matchErrorText": MessageLookupByLibrary.simpleMessage(
48+
"Hodnota nevyhovuje očakávanému tvaru."),
49+
"maxErrorText": m1,
50+
"maxLengthErrorText": m2,
51+
"minErrorText": m3,
52+
"minLengthErrorText": m4,
53+
"notEqualErrorText": m5,
54+
"numericErrorText":
55+
MessageLookupByLibrary.simpleMessage("Hodnota musí byť číslo."),
56+
"requiredErrorText": MessageLookupByLibrary.simpleMessage(
57+
"Toto pole nesmie byť prázdne."),
58+
"urlErrorText": MessageLookupByLibrary.simpleMessage(
59+
"Toto pole vyžaduje platnú URL adresu.")
60+
};
61+
}

lib/localization/form_builder_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class _FormBuilderLocalizationsDelegate
135135

136136
@override
137137
bool isSupported(Locale locale) {
138-
return ['en', 'es', 'fr', 'ja', 'pt'].contains(locale.languageCode);
138+
return ['en', 'es', 'fr', 'ja', 'pt', 'sk'].contains(locale.languageCode);
139139
}
140140

141141
@override

0 commit comments

Comments
 (0)