Fix build

This commit is contained in:
Pieter Vander Vennet 2022-09-18 20:28:41 +02:00
parent a70726f0aa
commit e5c20d72f4
3 changed files with 395 additions and 441 deletions

View file

@ -588,6 +588,10 @@ function MergeTranslation(source: any, target: any, language: string, context: s
continue
}
if(sourceV === ""){
console.log("Ignoring empty string in the translations")
}
if (typeof targetV === "string") {
throw `At context ${context}: Could not add a translation in language ${language}. The target object has a string at the given path, whereas the translation contains an object.\n String at target: ${targetV}\n Object at translation source: ${JSON.stringify(
sourceV