Improvements to translation checking in createLayouts, small translation fixes

This commit is contained in:
Pieter Vander Vennet 2020-09-25 23:59:19 +02:00
parent 60c835fdac
commit 1eddabd8c9
5 changed files with 30 additions and 12 deletions

View file

@ -104,6 +104,10 @@ export class FromJSON {
if (typeof (json) === "string") {
return new Translation({"*": json});
}
if(json.render !== undefined){
console.error("Using a 'render' where a translation is expected. Content is", json.render);
throw "ERROR: using a 'render' where none is expected"
}
const tr = {};
let keyCount = 0;
for (let key in json) {