-
Notifications
You must be signed in to change notification settings - Fork 1
/
ga_material_localization.dart
783 lines (615 loc) · 16.4 KB
/
ga_material_localization.dart
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/date_symbol_data_custom.dart' as date_symbol_data_custom;
import 'package:intl/date_symbols.dart' as intl;
import 'package:intl/intl.dart' as intl;
// currently a clone of the en_IE locals patterns as meaning is unclear
const gaLocaleDatePatterns = {
'd': 'd',
'E': 'ccc',
'EEEE': 'cccc',
'LLL': 'LLL',
'LLLL': 'LLLL',
'M': 'L',
'Md': 'd/M',
'MEd': 'EEE, d/M',
'MMM': 'LLL',
'MMMd': 'd MMM',
'MMMEd': 'EEE, d MMM',
'MMMM': 'LLLL',
'MMMMd': 'd MMMM',
'MMMMEEEEd': 'EEEE, d MMMM',
'QQQ': 'QQQ',
'QQQQ': 'QQQQ',
'y': 'y',
'yM': 'MM/y',
'yMd': 'd/M/y',
'yMEd': 'EEE, d/M/y',
'yMMM': 'MMM y',
'yMMMd': 'd MMM y',
'yMMMEd': 'EEE d MMM y',
'yMMMM': 'MMMM y',
'yMMMMd': 'd MMMM y',
'yMMMMEEEEd': 'EEEE d MMMM y',
'yQQQ': 'QQQ y',
'yQQQQ': 'QQQQ y',
'H': 'HH',
'Hm': 'HH:mm',
'Hms': 'HH:mm:ss',
'j': 'HH',
'jm': 'HH:mm',
'jms': 'HH:mm:ss',
'jmv': 'HH:mm v',
'jmz': 'HH:mm z',
'jz': 'HH z',
'm': 'm',
'ms': 'mm:ss',
's': 's',
'v': 'v',
'z': 'z',
'zzzz': 'zzzz',
'ZZZZ': 'ZZZZ',
};
/// A custom set of date symbols for the `ga` locale.
const gaDateSymbols = {
'NAME': 'ga',
'ERAS': <dynamic>[
'RC',
'AD',
],
'ERANAMES': <dynamic>[
'Roimh Chríost',
'Anno Domini',
],
'NARROWMONTHS': <dynamic>[
'E',
'F',
'M',
'A',
'B',
'M',
'I',
'L',
'MF',
'DF',
'S',
'N',
],
'STANDALONENARROWMONTHS': <dynamic>[
'E',
'F',
'M',
'A',
'B',
'M',
'I',
'L',
'MF',
'DF',
'S',
'N',
],
'MONTHS': <dynamic>[
'Eanáir',
'Feabhra',
'Márta',
'Aibreán',
'Bealtaine',
'Meitheamh',
'Iúil',
'Lúnasa',
'Meán Fómhair',
'Deireadh Fómhair',
'Samhain',
'Nollaig',
],
'STANDALONEMONTHS': <dynamic>[
'Eanáir',
'Feabhra',
'Márta',
'Aibreán',
'Bealtaine',
'Meitheamh',
'Iúil',
'Lúnasa',
'Meán Fómhair',
'Deireadh Fómhair',
'Samhain',
'Nollaig',
],
'SHORTMONTHS': <dynamic>[
'Ean',
'Feaḃ',
'Már',
'Aib',
'Beal',
'Meiṫ',
'Iúil',
'Lún',
'MFó',
'DFó',
'Saṁ',
'Nol',
],
'STANDALONESHORTMONTHS': <dynamic>[
'Ean',
'Feaḃ',
'Már',
'Aib',
'Beal',
'Meiṫ',
'Iúil',
'Lún',
'MFó',
'DFó',
'Saṁ',
'Nol',
],
'WEEKDAYS': <dynamic>[
'Dé Domhnaigh',
'Dé Luain',
'Dé Máirt',
'Dé Céadaoin',
'Déardaoin',
'Dé hAoine',
'Dé Sathairn',
],
'STANDALONEWEEKDAYS': <dynamic>[
'Dé Domhnaigh',
'Dé Luain',
'Dé Máirt',
'Dé Céadaoin',
'Déardaoin',
'Dé hAoine',
'Dé Sathairn',
],
'SHORTWEEKDAYS': <dynamic>[
'Doṁ',
'Lua',
'Mái',
'Céa',
'Déa',
'Aoi',
'Saṫ',
],
'STANDALONESHORTWEEKDAYS': <dynamic>[
'Doṁ',
'Lua',
'Mái',
'Céa',
'Déa',
'Aoi',
'Saṫ',
],
'NARROWWEEKDAYS': <dynamic>[
'D',
'L',
'M',
'C',
'D',
'A',
'S',
],
'STANDALONENARROWWEEKDAYS': <dynamic>[
'D',
'L',
'M',
'C',
'D',
'A',
'S',
],
'SHORTQUARTERS': <dynamic>[
'1úR',
'2úR',
'3úR',
'4úR',
],
'QUARTERS': <dynamic>[
'1ú ráithe',
'2ú ráithe',
'3ú ráithe',
'4ú ráithe',
],
'AMPMS': <dynamic>[
'r.n.',
'i.n.',
],
'DATEFORMATS': <dynamic>[
'EEEE d MMMM y',
'd MMMM y',
'd MMM y',
'dd/MM/y',
],
'TIMEFORMATS': <dynamic>[
'HH:mm:ss zzzz',
'HH:mm:ss z',
'HH:mm:ss',
'HH:mm',
],
'AVAILABLEFORMATS': null,
'FIRSTDAYOFWEEK': 0,
'WEEKENDRANGE': <dynamic>[
5,
6,
],
'FIRSTWEEKCUTOFFDAY': 3,
'DATETIMEFORMATS': <dynamic>[
'{1}, {0}',
'{1}, {0}',
'{1} {0}',
'{1} {0}',
],
};
class _GaMaterialLocalizationsDelegate
extends LocalizationsDelegate<MaterialLocalizations> {
const _GaMaterialLocalizationsDelegate();
@override
bool isSupported(Locale locale) => locale.languageCode == 'ga';
@override
Future<MaterialLocalizations> load(Locale locale) async {
final String localeName = intl.Intl.canonicalizedLocale(locale.toString());
// The locale (in this case `ga`) needs to be initialized into the custom
// date symbols and patterns setup that Flutter uses.
date_symbol_data_custom.initializeDateFormattingCustom(
locale: localeName,
patterns: gaLocaleDatePatterns,
symbols: intl.DateSymbols.deserializeFromMap(gaDateSymbols),
);
return SynchronousFuture<MaterialLocalizations>(
GaMaterialLocalizations(
localeName: localeName,
decimalFormat: intl.NumberFormat('#,##0.###', 'en'),
twoDigitZeroPaddedFormat: intl.NumberFormat('00', 'en'),
fullYearFormat: intl.DateFormat('y', localeName),
compactDateFormat: intl.DateFormat('yMd', localeName),
shortDateFormat: intl.DateFormat('yMMMd', localeName),
mediumDateFormat: intl.DateFormat('EEE, MMM d', localeName),
longDateFormat: intl.DateFormat('EEEE, MMMM d, y', localeName),
yearMonthFormat: intl.DateFormat('MMMM y', localeName),
shortMonthDayFormat: intl.DateFormat('MMM d', localeName),
),
);
}
@override
bool shouldReload(_GaMaterialLocalizationsDelegate old) => false;
}
// #enddocregion Delegate
/// A custom set of localizations for the 'ga' locale.
class GaMaterialLocalizations extends GlobalMaterialLocalizations {
const GaMaterialLocalizations({
super.localeName = 'ga',
required super.fullYearFormat,
required super.compactDateFormat,
required super.shortDateFormat,
required super.mediumDateFormat,
required super.longDateFormat,
required super.yearMonthFormat,
required super.shortMonthDayFormat,
required super.decimalFormat,
required super.twoDigitZeroPaddedFormat,
});
// #docregion Getters
@override
String get moreButtonTooltip => r'Níos mó';
@override
String get aboutListTileTitleRaw => r'Roimh $applicationName';
@override
String get alertDialogLabel => r'Foláireamh';
// #enddocregion Getters
@override
String get anteMeridiemAbbreviation => r'RN';
@override
String get backButtonTooltip => r'Ar ais';
@override
String get cancelButtonLabel => r'CEALAIGH';
@override
String get closeButtonLabel => r'DÚN';
@override
String get closeButtonTooltip => r'Dún';
@override
String get collapsedIconTapHint => r'Méadaigh';
@override
String get continueButtonLabel => r'AR AGHAIDH';
@override
String get copyButtonLabel => r'CÓIPEÁIL';
@override
String get cutButtonLabel => r'GEARR';
@override
String get deleteButtonTooltip => r'SCRIOS';
@override
String get dialogLabel => r'Dialóg';
@override
String get drawerLabel => r'Roghchlár stiúrtha';
@override
String get expandedIconTapHint => r'Fill';
@override
String get firstPageTooltip => r'An Chéad leathanach';
@override
String get hideAccountsLabel => r'Folaigh cuntais';
@override
String get lastPageTooltip => r'Leathanach deiridh';
@override
String get licensesPageTitle => r'Ceadúnais';
@override
String get modalBarrierDismissLabel => r'Dún';
@override
String get nextMonthTooltip => r'Mí seo chugainn';
@override
String get nextPageTooltip => r'An chéad leathanach eile';
@override
String get okButtonLabel => r'CGL';
@override
// A custom drawer tooltip message.
String get openAppDrawerTooltip => r'Oscail roghchlár stiúrtha';
// #docregion Raw
@override
String get pageRowsInfoTitleRaw => r'$firstRow–$lastRow de $rowCount';
@override
String get pageRowsInfoTitleApproximateRaw =>
r'$firstRow–$lastRow de thart ar $rowCount';
// #enddocregion Raw
@override
String get pasteButtonLabel => r'GREAMAIGH';
@override
String get popupMenuLabel => r'Roghchlár aníos';
@override
String get postMeridiemAbbreviation => r'IN';
@override
String get previousMonthTooltip => r'An mí roimhe';
@override
String get previousPageTooltip => r'An leathanach roimhe';
@override
String get refreshIndicatorSemanticLabel => r'Athnuaigh';
@override
String? get remainingTextFieldCharacterCountFew => null;
@override
String? get remainingTextFieldCharacterCountMany => null;
@override
String get remainingTextFieldCharacterCountOne => r'Fanann carachtar amháin';
@override
String get remainingTextFieldCharacterCountOther =>
r'Fanann $remainingCount gcarachtar';
@override
String? get remainingTextFieldCharacterCountTwo => r'Fanann 2 charachtar';
@override
String get remainingTextFieldCharacterCountZero =>
r'Ní fanann carachtair ar bith';
@override
String get reorderItemDown => r'Bog síos';
@override
String get reorderItemLeft => r'Bog ar chlé';
@override
String get reorderItemRight => r'Bog ar dheis';
@override
String get reorderItemToEnd => r'Bog go dtí an chríoch';
@override
String get reorderItemToStart => r'Bog go dtí an tús';
@override
String get reorderItemUp => r'Bog suas';
@override
String get rowsPerPageTitle => r'Ró sa lá:';
@override
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
@override
String get searchFieldLabel => r'Cuardaigh';
@override
String get selectAllButtonLabel => r'ROGHNAIGH UILE';
@override
String? get selectedRowCountTitleFew => null;
@override
String? get selectedRowCountTitleMany => null;
@override
String get selectedRowCountTitleOne => r'Tá earra 1 roghnaithe';
@override
String get selectedRowCountTitleOther =>
r'Tá $selectedRowCount earra roghnaithe';
@override
String? get selectedRowCountTitleTwo => null;
@override
String get selectedRowCountTitleZero => r'Ní earraí ar bith roghnaithe';
@override
String get showAccountsLabel => r'Taispeáin cuntais';
@override
String get showMenuTooltip => r'Taispeáin roghchlár';
@override
String get signedInLabel => r'Sínithe istigh';
@override
String get tabLabelRaw => r'Táb $tabIndex de $tabCount';
@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.h_colon_mm_space_a;
@override
String get timePickerHourModeAnnouncement => r'Roghnaigh uaireanta';
@override
String get timePickerMinuteModeAnnouncement => r'Roghnaigh nóiméid';
@override
String get viewLicensesButtonLabel => r'AMHARC AR CEADÚNAIS';
@override
List<String> get narrowWeekdays =>
const <String>['D', 'L', 'M', 'C', 'D', 'A', 'S'];
@override
int get firstDayOfWeekIndex => 1;
static const LocalizationsDelegate<MaterialLocalizations> delegate =
_GaMaterialLocalizationsDelegate();
@override
String get calendarModeButtonLabel => r'Athraigh go féilire';
@override
String get dateHelpText => r'dd/mm/yyyy';
@override
String get dateInputLabel => r'Iontráil Dáta';
@override
String get dateOutOfRangeLabel => r'As raon.';
@override
String get datePickerHelpText => r'ROGHNAIGH DÁTA';
@override
String get dateRangeEndDateSemanticLabelRaw => r'Dáta críochnaithe $fullDate';
@override
String get dateRangeEndLabel => r'Dáta críochnaithe';
@override
String get dateRangePickerHelpText => 'ROGHNAIGH RAON';
@override
String get dateRangeStartDateSemanticLabelRaw => 'Dáta tosaithe \$fullDate';
@override
String get dateRangeStartLabel => 'Dáta Tosaithe';
@override
String get dateSeparator => '/';
@override
String get dialModeButtonLabel => 'Athraigh go mód roghnóir dhiailiú';
@override
String get inputDateModeButtonLabel => 'Athraigh go ionchur';
@override
String get inputTimeModeButtonLabel => 'Athraigh go mód ionchuir téacs';
@override
String get invalidDateFormatLabel => 'Formáid neamhbhailí.';
@override
String get invalidDateRangeLabel => 'Raon neamhbhailí.';
@override
String get invalidTimeLabel => 'Iontráil am bailí';
@override
String get licensesPackageDetailTextOther => '\$licenseCount ceadúnas';
@override
String get saveButtonLabel => 'SÁBHÁIL';
@override
String get selectYearSemanticsLabel => 'Roghnaigh bliain';
@override
String get timePickerDialHelpText => 'ROGHNAIGH AM';
@override
String get timePickerHourLabel => 'Uair';
@override
String get timePickerInputHelpText => 'IONTRÁIL AM';
@override
String get timePickerMinuteLabel => 'Nóiméad';
@override
String get unspecifiedDate => 'Dáta';
@override
String get unspecifiedDateRange => 'Raon dáta';
@override
String get bottomSheetLabel => 'Bileog Íochtair';
@override
String get collapsedHint => 'Méadaithe';
@override
String get currentDateLabel => 'Inniu';
@override
String get expandedHint => 'Laghdaithe';
@override
String get expansionTileCollapsedHint => 'tapáil faoi dhó chun méadú';
@override
String get expansionTileCollapsedTapHint =>
'Méadaigh chun tuilleadh sonraí a fháil';
@override
String get expansionTileExpandedHint => 'tapáil faoi dhó chun laghdú';
@override
String get expansionTileExpandedTapHint => 'Laghdaigh';
@override
String get keyboardKeyAlt => 'Alt';
@override
String get keyboardKeyAltGraph => 'AltGr';
@override
String get keyboardKeyBackspace => 'Cúlspás';
@override
String get keyboardKeyCapsLock => 'Glas Ceannlitreacha';
@override
String get keyboardKeyChannelDown => 'Cainéal Síos';
@override
String get keyboardKeyChannelUp => 'Cainéal Suas';
@override
String get keyboardKeyControl => 'Ctrl';
@override
String get keyboardKeyDelete => 'Scrios';
@override
String get keyboardKeyEject => 'Díchuir';
@override
String get keyboardKeyEnd => 'Deireadh';
@override
String get keyboardKeyEscape => 'Esc';
@override
String get keyboardKeyFn => 'Fn';
@override
String get keyboardKeyHome => 'Baile';
@override
String get keyboardKeyInsert => 'Ionsáigh';
@override
String get keyboardKeyMeta => 'Meta';
@override
String get keyboardKeyMetaMacOs => 'Ordú';
@override
String get keyboardKeyMetaWindows => 'Win';
@override
String get keyboardKeyNumLock => 'Glas Uimhreacha';
@override
String get keyboardKeyNumpad1 => 'Uimh 1';
@override
String get keyboardKeyNumpad2 => 'Uimh 2';
@override
String get keyboardKeyNumpad3 => 'Uimh 3';
@override
String get keyboardKeyNumpad4 => 'Uimh 4';
@override
String get keyboardKeyNumpad5 => 'Uimh 5';
@override
String get keyboardKeyNumpad6 => 'Uimh 6';
@override
String get keyboardKeyNumpad7 => 'Uimh 7';
@override
String get keyboardKeyNumpad8 => 'Uimh 8';
@override
String get keyboardKeyNumpad9 => 'Uimh 9';
@override
String get keyboardKeyNumpad0 => 'Uimh 0';
@override
String get keyboardKeyNumpadAdd => 'Uimh +';
@override
String get keyboardKeyNumpadComma => 'Uimh ,';
@override
String get keyboardKeyNumpadDecimal => 'Uimh .';
@override
String get keyboardKeyNumpadDivide => 'Uimh /';
@override
String get keyboardKeyNumpadEnter => 'Uimh Enter';
@override
String get keyboardKeyNumpadEqual => 'Uimh =';
@override
String get keyboardKeyNumpadMultiply => 'Uimh *';
@override
String get keyboardKeyNumpadParenLeft => 'Uimh (';
@override
String get keyboardKeyNumpadParenRight => 'Uimh )';
@override
String get keyboardKeyNumpadSubtract => 'Uimh -';
@override
String get keyboardKeyPageDown => 'Lch Síos';
@override
String get keyboardKeyPageUp => 'Lch Suas';
@override
String get keyboardKeyPower => 'Cumhacht';
@override
String get keyboardKeyPowerOff => 'Múch';
@override
String get keyboardKeyPrintScreen => 'Priontáil Scáileán';
@override
String get keyboardKeyScrollLock => 'Glas Scrollaithe';
@override
String get keyboardKeySelect => 'Roghnaigh';
@override
String get keyboardKeyShift => 'Shift';
@override
String get keyboardKeySpace => 'Spás';
@override
String get lookUpButtonLabel => 'Cuardaigh';
@override
String get menuBarMenuLabel => 'Roghchlár barra roghchláir';
@override
String get menuDismissLabel => 'Díbir roghchlár';
@override
String get scanTextButtonLabel => 'Scan téacs';
@override
String get scrimLabel => 'Scrim';
@override
String get scrimOnTapHintRaw => r'Dún $modalRouteContentName';
@override
String get searchWebButtonLabel => 'Cuardaigh Gréasán';
@override
String get shareButtonLabel => 'Comhroinn';
}