-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl10n.dart
More file actions
299 lines (259 loc) · 7.85 KB
/
l10n.dart
File metadata and controls
299 lines (259 loc) · 7.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
// GENERATED CODE - DO NOT MODIFY BY HAND
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'intl/messages_all.dart';
// **************************************************************************
// Generator: Flutter Intl IDE plugin
// Made by Localizely
// **************************************************************************
// ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
// ignore_for_file: join_return_with_assignment, prefer_final_in_for_each
// ignore_for_file: avoid_redundant_argument_values, avoid_escaping_inner_quotes
class S {
S();
static S? _current;
static S get current {
assert(
_current != null,
'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.',
);
return _current!;
}
static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
static Future<S> load(Locale locale) {
final name =
(locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName;
final instance = S();
S._current = instance;
return instance;
});
}
static S of(BuildContext context) {
final instance = S.maybeOf(context);
assert(
instance != null,
'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?',
);
return instance!;
}
static S? maybeOf(BuildContext context) {
return Localizations.of<S>(context, S);
}
/// `Flutter Target`
String get appName {
return Intl.message('Flutter Target', name: 'appName', desc: '', args: []);
}
/// `This website uses cookies`
String get cookiesTitle {
return Intl.message(
'This website uses cookies',
name: 'cookiesTitle',
desc: '',
args: [],
);
}
/// `Accept`
String get cookiesAcceptCTA {
return Intl.message('Accept', name: 'cookiesAcceptCTA', desc: '', args: []);
}
/// `We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.`
String get cookiesBody {
return Intl.message(
'We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.',
name: 'cookiesBody',
desc: '',
args: [],
);
}
/// `No connection`
String get noConnection {
return Intl.message(
'No connection',
name: 'noConnection',
desc: '',
args: [],
);
}
/// `Retry`
String get retry {
return Intl.message('Retry', name: 'retry', desc: '', args: []);
}
/// `Please try again later, we are\nworking to fix the issue.`
String get pleaseTryAgainLaterWeArenworkingToFixTheIssue {
return Intl.message(
'Please try again later, we are\nworking to fix the issue.',
name: 'pleaseTryAgainLaterWeArenworkingToFixTheIssue',
desc: '',
args: [],
);
}
/// `Sorry we didn't find any product`
String get sorryWeDidntFindAnyProduct {
return Intl.message(
'Sorry we didn\'t find any product',
name: 'sorryWeDidntFindAnyProduct',
desc: '',
args: [],
);
}
/// `Login`
String get ctaLogin {
return Intl.message('Login', name: 'ctaLogin', desc: '', args: []);
}
/// `Sign Up`
String get ctaSignUp {
return Intl.message('Sign Up', name: 'ctaSignUp', desc: '', args: []);
}
/// `Email`
String get labelEmail {
return Intl.message('Email', name: 'labelEmail', desc: '', args: []);
}
/// `Password`
String get labelPassword {
return Intl.message('Password', name: 'labelPassword', desc: '', args: []);
}
/// `Confirm Password`
String get labelConfirmPassword {
return Intl.message(
'Confirm Password',
name: 'labelConfirmPassword',
desc: '',
args: [],
);
}
/// `Passwords do not match.`
String get errorPasswordsDoNotMatch {
return Intl.message(
'Passwords do not match.',
name: 'errorPasswordsDoNotMatch',
desc: '',
args: [],
);
}
/// `Min 8 characters long: 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character.`
String get passwordInstructions {
return Intl.message(
'Min 8 characters long: 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character.',
name: 'passwordInstructions',
desc: '',
args: [],
);
}
/// `I agree to the Terms and Conditions`
String get labelAgreeToTerms {
return Intl.message(
'I agree to the Terms and Conditions',
name: 'labelAgreeToTerms',
desc: '',
args: [],
);
}
/// `Email is required.`
String get errorEmailRequired {
return Intl.message(
'Email is required.',
name: 'errorEmailRequired',
desc: '',
args: [],
);
}
/// `Password is required.`
String get errorPasswordRequired {
return Intl.message(
'Password is required.',
name: 'errorPasswordRequired',
desc: '',
args: [],
);
}
/// `Login`
String get titleLogin {
return Intl.message('Login', name: 'titleLogin', desc: '', args: []);
}
/// `Sign Up`
String get titleSignUp {
return Intl.message('Sign Up', name: 'titleSignUp', desc: '', args: []);
}
/// `Use your email and password to login to your account.`
String get titleLoginSubtitle {
return Intl.message(
'Use your email and password to login to your account.',
name: 'titleLoginSubtitle',
desc: '',
args: [],
);
}
/// `Create an account using your email and password.`
String get titleSignUpSubtitle {
return Intl.message(
'Create an account using your email and password.',
name: 'titleSignUpSubtitle',
desc: '',
args: [],
);
}
/// `Please enter a valid email address.`
String get errorEmailInvalid {
return Intl.message(
'Please enter a valid email address.',
name: 'errorEmailInvalid',
desc: '',
args: [],
);
}
/// `Password is too weak.`
String get errorPasswordWeak {
return Intl.message(
'Password is too weak.',
name: 'errorPasswordWeak',
desc: '',
args: [],
);
}
/// `Invalid email or password.`
String get loginErrorInvalidCredentials {
return Intl.message(
'Invalid email or password.',
name: 'loginErrorInvalidCredentials',
desc: '',
args: [],
);
}
/// `This should open the terms and conditions URL.`
String get hintTermsAndConditions {
return Intl.message(
'This should open the terms and conditions URL.',
name: 'hintTermsAndConditions',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
const AppLocalizationDelegate();
List<Locale> get supportedLocales {
return const <Locale>[
Locale.fromSubtags(languageCode: 'en'),
Locale.fromSubtags(languageCode: 'es'),
];
}
@override
bool isSupported(Locale locale) => _isSupported(locale);
@override
Future<S> load(Locale locale) => S.load(locale);
@override
bool shouldReload(AppLocalizationDelegate old) => false;
bool _isSupported(Locale locale) {
for (var supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale.languageCode) {
return true;
}
}
return false;
}
}