Skip to content

Commit c1ccd7d

Browse files
committed
integrate greek language
1 parent 2b76bd7 commit c1ccd7d

13 files changed

+5588
-69
lines changed

lib/app/shared/enum/type/language_type.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:altme/l10n/l10n.dart';
22

3-
enum LanguageType { phone, ca, en, es, fr }
3+
enum LanguageType { phone, ca, en, es, fr, el }
44

55
extension LanguageTypeX on LanguageType {
66
String getTitle({required AppLocalizations l10n, required String name}) {
@@ -15,6 +15,8 @@ extension LanguageTypeX on LanguageType {
1515
return l10n.spanish;
1616
case LanguageType.fr:
1717
return l10n.french;
18+
case LanguageType.el:
19+
return l10n.greek;
1820
}
1921
}
2022
}

lib/l10n/arb/app_el.arb

Lines changed: 2089 additions & 0 deletions
Large diffs are not rendered by default.

lib/l10n/arb/app_en.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,5 +1177,6 @@
11771177
"trustedListSubtitle": "List of trusted entities in the current ecosystem. You are warned in case of interaction with non trusted entity.",
11781178
"notTrustedEntity": "This entity is not in the trusted list. You should be very cautious with untrusted entities.",
11791179
"acceptanceRequest": "Payment request",
1180-
"pay": "share and pay"
1180+
"pay": "share and pay",
1181+
"greek": "Ελληνικά"
11811182
}

lib/l10n/arb/app_localizations.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
66
import 'package:intl/intl.dart' as intl;
77

88
import 'app_localizations_ca.dart';
9+
import 'app_localizations_el.dart';
910
import 'app_localizations_en.dart';
1011
import 'app_localizations_es.dart';
1112
import 'app_localizations_fr.dart';
@@ -98,6 +99,7 @@ abstract class AppLocalizations {
9899
static const List<Locale> supportedLocales = <Locale>[
99100
Locale('en'),
100101
Locale('ca'),
102+
Locale('el'),
101103
Locale('es'),
102104
Locale('fr'),
103105
];
@@ -6090,6 +6092,12 @@ abstract class AppLocalizations {
60906092
/// In en, this message translates to:
60916093
/// **'share and pay'**
60926094
String get pay;
6095+
6096+
/// No description provided for @greek.
6097+
///
6098+
/// In en, this message translates to:
6099+
/// **'Ελληνικά'**
6100+
String get greek;
60936101
}
60946102

60956103
class _AppLocalizationsDelegate
@@ -6103,7 +6111,7 @@ class _AppLocalizationsDelegate
61036111

61046112
@override
61056113
bool isSupported(Locale locale) =>
6106-
<String>['ca', 'en', 'es', 'fr'].contains(locale.languageCode);
6114+
<String>['ca', 'el', 'en', 'es', 'fr'].contains(locale.languageCode);
61076115

61086116
@override
61096117
bool shouldReload(_AppLocalizationsDelegate old) => false;
@@ -6114,6 +6122,8 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
61146122
switch (locale.languageCode) {
61156123
case 'ca':
61166124
return AppLocalizationsCa();
6125+
case 'el':
6126+
return AppLocalizationsEl();
61176127
case 'en':
61186128
return AppLocalizationsEn();
61196129
case 'es':

lib/l10n/arb/app_localizations_ca.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,4 +3360,7 @@ class AppLocalizationsCa extends AppLocalizations {
33603360

33613361
@override
33623362
String get pay => 'share and pay';
3363+
3364+
@override
3365+
String get greek => 'Ελληνικά';
33633366
}

0 commit comments

Comments
 (0)