mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-04-19 07:50:39 +00:00
Compare commits
1 commit
b94cded350
...
3f73cdb312
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3f73cdb312 |
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,10 @@
|
|||
enum SupportedLocale { de, en, fr, ru, zh }
|
||||
enum SupportedLocale { en, fr, ru, zh, de }
|
||||
|
||||
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:
|
||||
|
@ -15,6 +13,8 @@ extension SupportedLocaleExtension on SupportedLocale {
|
|||
return 'Русский';
|
||||
case SupportedLocale.zh:
|
||||
return '简体中文';
|
||||
case SupportedLocale.de:
|
||||
return 'Deutsch';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue