mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-04-21 17:00:40 +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 {
|
extension SupportedLocaleExtension on SupportedLocale {
|
||||||
String get intlName => toString().replaceAll("SupportedLocale.", "");
|
String get intlName => toString().replaceAll("SupportedLocale.", "");
|
||||||
|
|
||||||
String get localizedName {
|
String get localizedName {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case SupportedLocale.de:
|
|
||||||
return 'Deutsch';
|
|
||||||
case SupportedLocale.en:
|
case SupportedLocale.en:
|
||||||
return 'English';
|
return 'English';
|
||||||
case SupportedLocale.fr:
|
case SupportedLocale.fr:
|
||||||
|
@ -15,6 +13,8 @@ extension SupportedLocaleExtension on SupportedLocale {
|
||||||
return 'Русский';
|
return 'Русский';
|
||||||
case SupportedLocale.zh:
|
case SupportedLocale.zh:
|
||||||
return '简体中文';
|
return '简体中文';
|
||||||
|
case SupportedLocale.de:
|
||||||
|
return 'Deutsch';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue