mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-26 01:10:39 +00:00
16 lines
407 B
Dart
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 'Русский';
|
|
}
|
|
}
|
|
}
|