Skip to content

Commit

Permalink
Using single line JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Jun 10, 2024
1 parent fda87b7 commit 1d8d3c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/updateJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ fs.writeFileSync(
JSON.stringify(
Object.fromEntries(Object.entries(labelMap).sort((a, b) => a[0].localeCompare(b[0]))),
null,
2
0
)
);
fs.writeFileSync(`${repo}/data/translators.json`, JSON.stringify(updateTimeMap, null, 2));
fs.writeFileSync(`${repo}/data/dashboard.json`, JSON.stringify(translators, null, 2));
fs.writeFileSync(`${repo}/data/translators.json`, JSON.stringify(updateTimeMap, null, 0));
fs.writeFileSync(`${repo}/data/dashboard.json`, JSON.stringify(translators, null, 0));
})();

0 comments on commit 1d8d3c8

Please sign in to comment.