Small fix: themes still load if no description is given

This commit is contained in:
Pieter Vander Vennet 2021-06-01 21:24:35 +02:00
parent 5d74115cde
commit f86e8ea191
2 changed files with 12 additions and 4 deletions

View file

@ -18,6 +18,9 @@ export class Translation extends UIElement {
}
let count = 0;
for (const translationsKey in translations) {
if(!translations.hasOwnProperty(translationsKey)){
continue
}
count++;
if (typeof (translations[translationsKey]) != "string") {
console.error("Non-string object in translation: ", translations[translationsKey])