Fix translations

This commit is contained in:
Pieter Vander Vennet 2022-04-18 01:40:00 +02:00
parent 9d8f0698f1
commit 1af306716a
7 changed files with 64 additions and 55 deletions

View file

@ -18,8 +18,8 @@ function fixSection(section, referenceSection, language: string) {
for (const subkey of Object.keys(referenceSection)) {
const subreference = referenceSection[subkey]
if(subreference[key] !== undefined){
if(section[subkey][key] !== undefined) {
console.log(`${subkey}${key} is alrady defined... Looking furhter`)
if(section[subkey] !== undefined && section[subkey][key] !== undefined) {
console.log(`${subkey}${key} is already defined... Looking furhter`)
continue
}
if(typeof section[subkey] === "string"){