Commit d2edcc5
Changed files (2)
lib
model
test
lib/model/iso_lang_names.dart
@@ -13,6 +13,7 @@ String getDisplayLanguage(Locale l) => switch(l.toLanguageTag()) {
'pt-BR' => 'Português (Brasil)',
'ru' => 'Русский',
'tr' => 'Türkçe',
+ 'sv' => 'Svenska',
'zh' => '中文 (简体)',
'zh-Hant' => '中文(繁體)',
// Websites with names for expanding when new languages get added:
test/model/iso_lang_names_test.dart
@@ -29,7 +29,9 @@ void main() {
if (AppLocalizations.supportedLocales.where(
(e) => e.toLanguageTag() == '$c1$c2',).isNotEmpty) continue;
expect(() => getDisplayLanguage(Locale('$c1$c2')),
- throwsAssertionError,);
+ throwsAssertionError,
+ reason: 'Lang $c1$c2 does not exist'
+ );
expect(printCounts, greaterThan(1));
printCounts = 0;
}