check-lang-json
Louis Lam 1 month ago
parent 61a61a5555
commit 1048f6dd7a

@ -2,7 +2,7 @@
const fs = require("fs"); const fs = require("fs");
let path = "../src/lang"; let path = "./src/lang";
// list directories in the lang directory // list directories in the lang directory
let jsonFileList = fs.readdirSync(path); let jsonFileList = fs.readdirSync(path);
@ -23,3 +23,5 @@ for (let jsonFile of jsonFileList) {
process.exit(1); process.exit(1);
} }
} }
console.log("All lang json files are formatted correctly.");

Loading…
Cancel
Save