m3_lightmeter/lib/data/models/supported_locale.dart
2025-03-17 16:57:55 +01:00

20 lines
534 B
Dart

enum SupportedLocale { en, fr, ru, zh, de }
extension SupportedLocaleExtension on SupportedLocale {
String get intlName => toString().replaceAll("SupportedLocale.", "");
String get localizedName {
switch (this) {
case SupportedLocale.en:
return 'English';
case SupportedLocale.fr:
return 'Français';
case SupportedLocale.ru:
return 'Русский';
case SupportedLocale.zh:
return '简体中文';
case SupportedLocale.de:
return 'Deutsch';
}
}
}