Improvements to translation checking in createLayouts, small translation fixes
This commit is contained in:
parent
60c835fdac
commit
1eddabd8c9
5 changed files with 30 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue