mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-17 10:36:41 +00:00

* wip * wip * reviewed punctuation * Create intl_pl.arb * Update metering_screen.png * fixed polish translations * shortened Russian translations * Added missing translations * Update intl_ru.arb
22 lines
594 B
Dart
22 lines
594 B
Dart
enum SupportedLocale { de, en, fr, pl, ru, zh }
|
|
|
|
extension SupportedLocaleExtension on SupportedLocale {
|
|
String get intlName => toString().replaceAll("SupportedLocale.", "");
|
|
|
|
String get localizedName {
|
|
switch (this) {
|
|
case SupportedLocale.de:
|
|
return 'Deutsch';
|
|
case SupportedLocale.en:
|
|
return 'English';
|
|
case SupportedLocale.fr:
|
|
return 'Français';
|
|
case SupportedLocale.pl:
|
|
return 'Polski';
|
|
case SupportedLocale.ru:
|
|
return 'Русский';
|
|
case SupportedLocale.zh:
|
|
return '简体中文';
|
|
}
|
|
}
|
|
}
|