forked from MapComplete/MapComplete
Fix: setting the language does not overwrite the user setting anymore
This commit is contained in:
parent
4606df7d2b
commit
c6283ac720
6 changed files with 22 additions and 16 deletions
|
|
@ -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"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue