forked from MapComplete/MapComplete
"working"
This commit is contained in:
parent
8fc56f7487
commit
cc0c925b81
27 changed files with 4743 additions and 17591 deletions
|
@ -54,9 +54,9 @@ function main(args: string[]): void {
|
|||
)
|
||||
return
|
||||
}
|
||||
const reference = JSON.parse(readFileSync("./langs/en.json", "UTF8"))
|
||||
const reference = JSON.parse(readFileSync("./langs/en.json", { encoding: "utf8" }))
|
||||
const path = `./langs/${l}.json`
|
||||
const file = JSON.parse(readFileSync(path, "UTF8"))
|
||||
const file = JSON.parse(readFileSync(path, { encoding: "utf8" }))
|
||||
fixSection(file[sectionName], reference[sectionName], l)
|
||||
writeFileSync(path, JSON.stringify(file, null, " ") + "\n")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue