forked from MapComplete/MapComplete
Refactoring: further cleanup of the themes
This commit is contained in:
parent
2f5091a8cb
commit
e86f7d863e
86 changed files with 230 additions and 579 deletions
|
@ -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}`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue