forked from MapComplete/MapComplete
Better handling if wikipage is missing
This commit is contained in:
parent
a996ba2a7c
commit
54bc4f24da
2 changed files with 32 additions and 9 deletions
|
@ -214,4 +214,12 @@ export class Translation extends BaseUIElement {
|
|||
}
|
||||
return allTranslations
|
||||
}
|
||||
|
||||
static fromMap(transl: Map<string, string>) {
|
||||
const translations = {}
|
||||
transl.forEach((value, key) => {
|
||||
translations[key] = value
|
||||
})
|
||||
return new Translation(translations);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue