m3_lightmeter/lib/data/models/supported_locale.dart
Vadim 056cf4f44b
ML-247 Revise translations + Add PL locale (#249)
* 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
2025-08-11 11:09:29 +02:00

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 '简体中文';
}
}
}