forked from MapComplete/MapComplete
Studio: get basic translations working kindoff
This commit is contained in:
parent
2923020575
commit
b58ba665b5
36 changed files with 13542 additions and 15486 deletions
|
|
@ -113,10 +113,12 @@ export default class TagRenderingConfig {
|
|||
|
||||
this.labels = json.labels ?? []
|
||||
if (typeof json.classes === "string") {
|
||||
this.classes = json.classes.split(" ")
|
||||
this.classes = (<string>json.classes).split(" ")
|
||||
} else {
|
||||
this.classes = json.classes ?? []
|
||||
}
|
||||
this.classes = [].concat(...this.classes.map((cl) => cl.split(" ")))
|
||||
|
||||
this.render = Translations.T(<any>json.render, translationKey + ".render")
|
||||
this.question = Translations.T(json.question, translationKey + ".question")
|
||||
this.questionhint = Translations.T(json.questionHint, translationKey + ".questionHint")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue