Skip to content

Commit 0ef753f

Browse files
committed
feat: added language support for Swahili (sw)
1 parent 625995b commit 0ef753f

File tree

6 files changed

+179
-0
lines changed

6 files changed

+179
-0
lines changed

packages/form_builder_validators/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ To allow for localization of default error messages within your app, add `FormBu
141141
- Slovak (sk)
142142
- Slovenian (sl)
143143
- Spanish (es)
144+
- Swahili (sw)
144145
- Ukrainian (uk)
145146

146147
and you can still add your own custom error messages.

packages/form_builder_validators/example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class MyApp extends StatelessWidget {
2424
Locale('it'),
2525
Locale('lo'),
2626
Locale('uk'),
27+
Locale('sw'),
2728
],
2829
localizationsDelegates: const [
2930
GlobalMaterialLocalizations.delegate,
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": "sw",
4+
"requiredErrorText": "Sehemu hii haiwezi kuwa tupu.",
5+
"@requiredErrorText": {
6+
"description": "Error Text for required field",
7+
"type": "text",
8+
"placeholders": {}
9+
},
10+
"minErrorText": "Thamani lazima iwe kubwa kuliko au sawa na {min}.",
11+
"@minErrorText": {
12+
"description": "Error Text for required field",
13+
"type": "text",
14+
"placeholders": {
15+
"min": {}
16+
}
17+
},
18+
"minLengthErrorText": "Thamani lazima iwe na urefu mkubwa kuliko au sawa na {minLength}.",
19+
"@minLengthErrorText": {
20+
"description": "Error Text for required field",
21+
"type": "text",
22+
"placeholders": {
23+
"minLength": {}
24+
}
25+
},
26+
"maxErrorText": "Thamani lazima iwe chini ya au sawa na {max}",
27+
"@maxErrorText": {
28+
"description": "Error Text for required field",
29+
"type": "text",
30+
"placeholders": {
31+
"max": {}
32+
}
33+
},
34+
"maxLengthErrorText": "Thamani lazima iwe na urefu chini ya au sawa na {maxLength}",
35+
"@maxLengthErrorText": {
36+
"description": "Error Text for required field",
37+
"type": "text",
38+
"placeholders": {
39+
"maxLength": {}
40+
}
41+
},
42+
"emailErrorText": "Sehemu hii inahitaji barua pepe halali.",
43+
"@emailErrorText": {
44+
"description": "Error Text for email field",
45+
"type": "text",
46+
"placeholders": {}
47+
},
48+
"integerErrorText": "Sehemu hii inahitaji nambari kamili halali.",
49+
"@integerErrorText": {
50+
"description": "Error Text for integer validator",
51+
"type": "text",
52+
"placeholders": {}
53+
},
54+
"equalErrorText": "Thamani ya sehemu hii lazima iwe sawa na {value}.",
55+
"@equalErrorText": {
56+
"description": "Error Text for equal validator",
57+
"type": "text",
58+
"placeholders": {
59+
"value": {}
60+
}
61+
},
62+
"notEqualErrorText": "Thamani hii ya sehemu haifai kuwa sawa na {value}.",
63+
"@notEqualErrorText": {
64+
"description": "Error Text for not-equal validator",
65+
"type": "text",
66+
"placeholders": {
67+
"value": {}
68+
}
69+
},
70+
"urlErrorText": "Sehemu hii inahitaji anwani sahihi ya tovuti.",
71+
"@urlErrorText": {
72+
"description": "Error Text for URL field",
73+
"type": "text",
74+
"placeholders": {}
75+
},
76+
"matchErrorText": "Thamani hailingani na muundo.",
77+
"@matchErrorText": {
78+
"description": "Error Text for pattern field",
79+
"type": "text",
80+
"placeholders": {}
81+
},
82+
"numericErrorText": "Thamani lazima iwe nambari.",
83+
"@numericErrorText": {
84+
"description": "Error Text for numeric field",
85+
"type": "text",
86+
"placeholders": {}
87+
},
88+
"creditCardErrorText": "Sehemu hii inahitaji nambari halali ya kadi ya mkopo.",
89+
"@creditCardErrorText": {
90+
"description": "Error Text for credit card field",
91+
"type": "text",
92+
"placeholders": {}
93+
},
94+
"ipErrorText": "Sehemu hii inahitaji IP halali.",
95+
"@ipErrorText": {
96+
"description": "Error Text for IP address field",
97+
"type": "text",
98+
"placeholders": {}
99+
},
100+
"dateStringErrorText": "Sehemu hii inahitaji mfuatano halali wa tarehe.",
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
@@ -37,6 +37,7 @@ import 'messages_pt.dart' as messages_pt;
3737
import 'messages_ru.dart' as messages_ru;
3838
import 'messages_sk.dart' as messages_sk;
3939
import 'messages_sl.dart' as messages_sl;
40+
import 'messages_sw.dart' as messages_sw;
4041
import 'messages_uk.dart' as messages_uk;
4142
import 'messages_zh_Hans.dart' as messages_zh_hans;
4243
import 'messages_zh_Hant.dart' as messages_zh_hant;
@@ -65,6 +66,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
6566
'ru': () => new Future.value(null),
6667
'sk': () => new Future.value(null),
6768
'sl': () => new Future.value(null),
69+
'sw': () => new Future.value(null),
6870
'uk': () => new Future.value(null),
6971
'zh_Hans': () => new Future.value(null),
7072
'zh_Hant': () => new Future.value(null),
@@ -116,6 +118,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
116118
return messages_sk.messages;
117119
case 'sl':
118120
return messages_sl.messages;
121+
case 'sw':
122+
return messages_sw.messages;
119123
case 'uk':
120124
return messages_uk.messages;
121125
case 'zh_Hans':
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 sw 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 => 'sw';
22+
23+
static String m0(value) =>
24+
"Thamani ya sehemu hii lazima iwe sawa na ${value}.";
25+
26+
static String m1(max) => "Thamani lazima iwe chini ya au sawa na ${max}";
27+
28+
static String m2(maxLength) =>
29+
"Thamani lazima iwe na urefu chini ya au sawa na ${maxLength}";
30+
31+
static String m3(min) => "Thamani lazima iwe kubwa kuliko au sawa na ${min}.";
32+
33+
static String m4(minLength) =>
34+
"Thamani lazima iwe na urefu mkubwa kuliko au sawa na ${minLength}.";
35+
36+
static String m5(value) =>
37+
"Thamani hii ya sehemu haifai kuwa sawa na ${value}.";
38+
39+
final messages = _notInlinedMessages(_notInlinedMessages);
40+
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
41+
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
42+
"Sehemu hii inahitaji nambari halali ya kadi ya mkopo."),
43+
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
44+
"Sehemu hii inahitaji mfuatano halali wa tarehe."),
45+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
46+
"Sehemu hii inahitaji barua pepe halali."),
47+
"equalErrorText": m0,
48+
"integerErrorText": MessageLookupByLibrary.simpleMessage(
49+
"Sehemu hii inahitaji nambari kamili halali."),
50+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
51+
"Sehemu hii inahitaji IP halali."),
52+
"matchErrorText": MessageLookupByLibrary.simpleMessage(
53+
"Thamani hailingani na muundo."),
54+
"maxErrorText": m1,
55+
"maxLengthErrorText": m2,
56+
"minErrorText": m3,
57+
"minLengthErrorText": m4,
58+
"notEqualErrorText": m5,
59+
"numericErrorText":
60+
MessageLookupByLibrary.simpleMessage("Thamani lazima iwe nambari."),
61+
"requiredErrorText": MessageLookupByLibrary.simpleMessage(
62+
"Sehemu hii haiwezi kuwa tupu."),
63+
"urlErrorText": MessageLookupByLibrary.simpleMessage(
64+
"Sehemu hii inahitaji anwani sahihi ya tovuti.")
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)