Add label for language switcher

This is what I meant with " Optionally add translation for the lang-switcher-label". I added it inline since I dont know how the translation system works, yet. Feel free to revert this change; the label is not too importat IMO.
This commit is contained in:
Tobias 2021-01-20 22:24:00 +01:00
parent f5504d28f4
commit d9040db12a

View file

@ -13,7 +13,7 @@ export default class LanguagePicker {
return undefined;
}
return new DropDown(label, languages.map(lang => {
return new DropDown("Change Language", languages.map(lang => {
return {value: lang, shown: lang}
}
), Locale.language, 'sr-only', 'bg-indigo-100 p-1 rounded hover:bg-indigo-200');