Studio: get basic translations working kindoff

This commit is contained in:
Pieter Vander Vennet 2023-06-30 13:36:02 +02:00
parent 2923020575
commit b58ba665b5
36 changed files with 13542 additions and 15486 deletions

View file

@ -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")