You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
310 B
JavaScript
9 lines
310 B
JavaScript
// Converts translate.json file to translate.csv file
|
|
|
|
const fs = require("fs")
|
|
let inputFile = JSON.parse(fs.readFileSync('translations/translate.json', 'utf8'))
|
|
|
|
fs.writeFileSync("translate.csv", "")
|
|
for (const [key, value] of Object.entries(inputFile)){
|
|
fs.appendFileSync("translate.csv", key + "\n")
|
|
} |