Remove _context from language picker

This commit is contained in:
pietervdvn 2022-04-08 18:03:15 +02:00
parent db9aa8ab72
commit 1231cd50e1

View file

@ -27,7 +27,9 @@ export default class LanguagePicker {
}
private static dropdownFor(languages: string[], label: string | BaseUIElement): BaseUIElement {
return new DropDown(label, languages.map(lang => {
return new DropDown(label, languages
.filter(lang => lang !== "_context")
.map(lang => {
return {value: lang, shown: LanguagePicker.hybrid(lang) }
}
), Locale.language)