forked from MapComplete/MapComplete
Fixes and simplification of the CSS
This commit is contained in:
parent
c7f33a9490
commit
6d5f4ade25
24 changed files with 191 additions and 344 deletions
|
@ -41,6 +41,9 @@ export default class Translation extends UIElement {
|
|||
|
||||
|
||||
get txt(): string {
|
||||
if(this.translations["*"]){
|
||||
return this.translations["*"];
|
||||
}
|
||||
const txt = this.translations[Translation.forcedLanguage ?? Locale.language.data];
|
||||
if (txt !== undefined) {
|
||||
return txt;
|
||||
|
@ -79,10 +82,6 @@ export default class Translation extends UIElement {
|
|||
return result;
|
||||
}
|
||||
|
||||
public R(): string {
|
||||
return new Translation(this.translations).Render();
|
||||
}
|
||||
|
||||
public Clone() {
|
||||
return new Translation(this.translations)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue