Skip to content

Commit

Permalink
fixed some issues with scripts/langs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
0neGal committed Apr 29, 2024
1 parent 61e9d38 commit e2c6c37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/langs.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ let format = (logging = true) => {

try {
// attempt read, parse and flatten `file_path`
let json = flat.flatten(require(file_path));
let json = flat.flatten(
JSON.parse(fs.readFileSync(file_path))
)

// sort `json`
json = Object.fromEntries(
Expand Down Expand Up @@ -152,7 +154,6 @@ let localize = async () => {
// get just the flattened keys of the language
let keys = Object.keys(lang_keys);

console.log(problems)
// are there any missing keys?
if (problems[picked_lang].length) {
// prompt for whether we should only show missing keys
Expand Down

0 comments on commit e2c6c37

Please sign in to comment.