Refactoring: further cleanup of the themes

This commit is contained in:
Pieter Vander Vennet 2023-06-20 03:14:18 +02:00
parent 2f5091a8cb
commit e86f7d863e
86 changed files with 230 additions and 579 deletions

View file

@ -32,6 +32,12 @@ export default class WithContextLoader {
return shared
}
}
if (Object.keys(v).length === 1 && typeof v["render"] === "string") {
throw `At ${
translationContext ?? "<unknown>"
}: use the content directly instead of {${key}: ${JSON.stringify(v)}}`
}
return new TagRenderingConfig(v, `${translationContext ?? this._context}.${key}`)
}