forked from MapComplete/MapComplete
Fix build
This commit is contained in:
parent
12a200c54d
commit
e28f4aeaf7
5 changed files with 35 additions and 63 deletions
|
|
@ -174,10 +174,10 @@ export class Translation extends BaseUIElement {
|
|||
return "en"
|
||||
}
|
||||
for (const i in this.translations) {
|
||||
return this.translations[i] // Return a random language
|
||||
return i // Return a random language
|
||||
}
|
||||
console.error("Missing language ", Locale.language.data, "for", this.translations)
|
||||
return ""
|
||||
return undefined
|
||||
}
|
||||
public textFor(language: string): string | undefined {
|
||||
return this.translations[this.actualLanguage(language)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue