forked from MapComplete/MapComplete
Fix translations
This commit is contained in:
parent
9d8f0698f1
commit
1af306716a
7 changed files with 64 additions and 55 deletions
|
@ -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"){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue