diff --git a/lib/data/models/supported_locale.dart b/lib/data/models/supported_locale.dart index 0d93a50..ffb6eba 100644 --- a/lib/data/models/supported_locale.dart +++ b/lib/data/models/supported_locale.dart @@ -1,4 +1,4 @@ -enum SupportedLocale { en, fr, ru, zh } +enum SupportedLocale { en, fr, ru, zh, de } extension SupportedLocaleExtension on SupportedLocale { String get intlName => toString().replaceAll("SupportedLocale.", ""); @@ -13,6 +13,8 @@ extension SupportedLocaleExtension on SupportedLocale { return 'Русский'; case SupportedLocale.zh: return '简体中文'; + case SupportedLocale.de: + return 'Deutsch'; } } } diff --git a/test/data/models/supported_locale_test.dart b/test/data/models/supported_locale_test.dart index 83f7489..d43fb20 100644 --- a/test/data/models/supported_locale_test.dart +++ b/test/data/models/supported_locale_test.dart @@ -7,6 +7,7 @@ void main() { expect(SupportedLocale.fr.intlName, 'fr'); expect(SupportedLocale.ru.intlName, 'ru'); expect(SupportedLocale.zh.intlName, 'zh'); + expect(SupportedLocale.de.intlName, 'de'); }); test('localizedName', () { @@ -14,5 +15,6 @@ void main() { expect(SupportedLocale.fr.localizedName, 'Français'); expect(SupportedLocale.ru.localizedName, 'Русский'); expect(SupportedLocale.zh.localizedName, '简体中文'); + expect(SupportedLocale.de.localizedName, 'Deutsch'); }); }