Skip to content

Commit 54d8455

Browse files
committed
Update PreferencesViewController.cs
1 parent 3351ab2 commit 54d8455

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Nickvision.Application.Shared/Controllers/PreferencesViewController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public PreferencesViewController(IJsonFileService jsonFileService, ITranslationS
2727
new SelectionItem<string>(string.Empty, Translator._("System"), string.IsNullOrEmpty(_configuration.TranslationLanguage)),
2828
new SelectionItem<string>("C", "en_US", _configuration.TranslationLanguage == "C")
2929
};
30-
foreach (var language in Translator.AvailableLanguages)
30+
var languages = Translator.AvailableLanguages.ToList();
31+
languages.Sort();
32+
foreach (var language in languages)
3133
{
3234
(AvailableTranslationLanguages as IList)!.Add(new SelectionItem<string>(language, language, _configuration.TranslationLanguage == language));
3335
}

0 commit comments

Comments
 (0)