thedesk/app/js/lang/json5Tojson.js

3 lines
201 B
JavaScript
Raw Permalink Normal View History

2019-08-29 02:20:47 +10:00
const JSON5 = require('json5')
const fs = require("fs")
fs.writeFileSync("main.json", JSON.stringify(JSON5.parse(fs.readFileSync("lang." + process.argv[2] + ".js", 'utf8').replace("var lang = ", ""))))