Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat Core committed Nov 11, 2020
1 parent 06a3d56 commit 851866e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/upgrade_translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ async function main() {
lang_files[sheet.getCell(0, index2).value][sheet.getCell(row.rowIndex - 1, 0).value] = lang_value;
}
}
console.log(lang_files)
for (const key in lang_files) {
if (lang_files.hasOwnProperty(key) && key !== "null") {
console.log("Writing " + key + ".json")
const content = lang_files[key];
fs.writeFileSync(LANG_PATH + key + ".json", JSON.stringify(content,null, 4))
await fs.writeFileSync(LANG_PATH + key + ".json", JSON.stringify(content,null, 4))
console.log("Done")
}
}
}
Expand Down

0 comments on commit 851866e

Please sign in to comment.