forked from MapComplete/MapComplete
Console logging
This commit is contained in:
parent
6118d734c0
commit
4f3135caef
6 changed files with 10 additions and 16 deletions
|
@ -22,18 +22,18 @@ export class SubstitutedTranslation extends UIElement {
|
|||
this.translation = translation;
|
||||
this.tags = tags;
|
||||
const self = this;
|
||||
this.dumbMode = false;
|
||||
Locale.language.addCallbackAndRun(() => {
|
||||
self.content = self.CreateContent();
|
||||
self.Update();
|
||||
});
|
||||
this.dumbMode = false;
|
||||
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return new Combine(this.content).Render();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private CreateContent(): UIElement[] {
|
||||
let txt = this.translation?.txt;
|
||||
if (txt === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue