Add missing translations, improvements to charging stations theme

This commit is contained in:
Pieter Vander Vennet 2021-10-26 01:14:22 +02:00
parent 0252fd43ab
commit e8b0c3f4c8
7 changed files with 1207 additions and 58 deletions

View file

@ -259,7 +259,7 @@ function run(file, protojson) {
const stringified = questions.map(q => JSON.stringify(q, null, " "))
let protoString = readFileSync(protojson, "utf8")
protoString = protoString.replace("{\"id\": \"$$$\"}", stringified.join(",\n"))
protoString = protoString.replace(/{[ \t\n]*"id"[ \t\n]*:[ \t\n]*"\$\$\$"[ \t\n]*}/, stringified.join(",\n"))
const proto = <LayerConfigJson>JSON.parse(protoString)
proto.tagRenderings.forEach(tr => {
if (typeof tr === "string") {