Compare commits

...

2 commits

Author SHA1 Message Date
Linus von Drenkmann
b94cded350
Merge 04ded6c35f into 0e45d98060 2025-03-20 16:18:23 +00:00
drenkmann
04ded6c35f style: alphabetical sorting of languages 2025-03-20 17:18:17 +01:00

View file

@ -1,10 +1,12 @@
enum SupportedLocale { en, fr, ru, zh, de }
enum SupportedLocale { de, en, fr, ru, zh }
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:
@ -13,8 +15,6 @@ extension SupportedLocaleExtension on SupportedLocale {
return 'Русский';
case SupportedLocale.zh:
return '简体中文';
case SupportedLocale.de:
return 'Deutsch';
}
}
}