Fix: reset translations

This commit is contained in:
Pieter Vander Vennet 2024-10-08 19:02:19 +02:00
parent f8ef32f123
commit 6a4166febb
8 changed files with 44 additions and 35 deletions

View file

@ -49,6 +49,9 @@ class TranslationPart {
}
for (const translationsKey in translations) {
const v = translations[translationsKey]
if(Array.isArray(v) && context .endsWith("keywords")){
continue
}
if (typeof v != "string") {
console.error(
`Non-string object at ${context} in translation while trying to add the translation ` +