Another attempt to fix the build
This commit is contained in:
parent
e7ae5973cb
commit
3ae7478bfb
8 changed files with 10 additions and 146 deletions
|
@ -55,7 +55,7 @@ class TranslationPart {
|
|||
}
|
||||
const v = translations[translationsKey]
|
||||
if (typeof (v) != "string") {
|
||||
console.error(`Non-string object at ${context} in translation while trying to add more translations to '` + translationsKey + "'. The offending object which _should_ be a translation is: ", v)
|
||||
console.error(`Non-string object at ${context} in translation while trying to add more translations to '` + translationsKey + "'. The offending object which _should_ be a translation is: ", v,"\n\nThe current object is:", JSON.stringify(this.contents))
|
||||
throw "Error in an object depicting a translation: a non-string object was found. (" + context + ")\n You probably put some other section accidentally in the translation"
|
||||
}
|
||||
this.contents.set(translationsKey, v)
|
||||
|
@ -104,7 +104,7 @@ class TranslationPart {
|
|||
continue
|
||||
}
|
||||
|
||||
if (v["id"] !== undefined && context.indexOf("tagRenderings")>=0) {
|
||||
if (v["id"] !== undefined && (context.endsWith(".+tagRenderings") || context.endsWith(".tagRenderings+") || context.endsWith(".tagRenderings"))) {
|
||||
// We use the embedded id as key instead of the index as this is more stable
|
||||
// Note: indonesian is shortened as 'id' as well!
|
||||
if (v["en"] !== undefined || v["nl"] !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue