More refactoring

This commit is contained in:
Pieter Vander Vennet 2023-03-29 17:21:20 +02:00
parent 5d0fe31c41
commit 41e6a2c760
147 changed files with 1540 additions and 1797 deletions

View file

@ -51,10 +51,6 @@ export class Translation extends BaseUIElement {
return this.textFor(Translation.forcedLanguage ?? Locale.language.data)
}
public toString() {
return this.txt
}
static ExtractAllTranslationsFrom(
object: any,
context = ""
@ -91,6 +87,10 @@ export class Translation extends BaseUIElement {
return new Translation(translations)
}
public toString() {
return this.txt
}
Destroy() {
super.Destroy()
this.isDestroyed = true