import {UIElement} from "./UIElement"; import Locale from "../UI/i18n/Locale"; import State from "../State"; import Translations from "./i18n/Translations"; import Combine from "./Base/Combine"; import LanguagePicker from "./LanguagePicker"; export class WelcomeMessage extends UIElement { private languagePicker: UIElement; private readonly description: UIElement; private readonly plzLogIn: UIElement; private readonly welcomeBack: UIElement; private readonly tail: UIElement; constructor() { super(State.state.osmConnection.userDetails); this.ListenTo(Locale.language); this.languagePicker = LanguagePicker.CreateLanguagePicker(State.state.layoutToUse.data.language, Translations.t.general.pickLanguage); const layout = State.state.layoutToUse.data; this.description = new Combine([ "