m3_lightmeter/lib/data/models/supported_locale.dart
2023-06-21 08:58:55 +02:00

16 lines
407 B
Dart

enum SupportedLocale { en, fr, ru }
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 'Русский';
}
}
}