Fix: setting the language does not overwrite the user setting anymore

This commit is contained in:
Pieter Vander Vennet 2023-06-06 00:03:50 +02:00
parent 4606df7d2b
commit c6283ac720
6 changed files with 22 additions and 16 deletions

View file

@ -8,6 +8,7 @@ import BaseUIElement from "./BaseUIElement"
import LanguagePicker from "./LanguagePicker"
import TableOfContents from "./Base/TableOfContents"
import LeftIndex from "./Base/LeftIndex"
import Locale from "./i18n/Locale";
class Snippet extends Toggleable {
constructor(translations, ...extraContent: BaseUIElement[]) {
@ -89,8 +90,7 @@ class ProfessionalGui extends LeftIndex {
}).SetClass("subtle"),
new LanguagePicker(
Translations.t.professional.title.SupportedLanguages(),
""
Translations.t.professional.title.SupportedLanguages(), Locale.language
)?.SetClass("mt-4 self-end flex-col"),
].map((el) => el?.SetClass("pl-4"))