From 04ded6c35fdef0831d97abbe32dae06ca069128c Mon Sep 17 00:00:00 2001 From: drenkmann Date: Thu, 20 Mar 2025 17:18:17 +0100 Subject: [PATCH] style: alphabetical sorting of languages --- lib/data/models/supported_locale.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/data/models/supported_locale.dart b/lib/data/models/supported_locale.dart index ffb6eba..f0aab98 100644 --- a/lib/data/models/supported_locale.dart +++ b/lib/data/models/supported_locale.dart @@ -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'; } } }