From d9040db12ae8cea7e6174e768c96a9710e3ca1ae Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 20 Jan 2021 22:24:00 +0100 Subject: [PATCH] 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. --- UI/LanguagePicker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/LanguagePicker.ts b/UI/LanguagePicker.ts index 2336a51a4..40aafa6ea 100644 --- a/UI/LanguagePicker.ts +++ b/UI/LanguagePicker.ts @@ -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');