This commit is contained in:
austinried
2023-04-28 12:26:02 +09:00
parent af6fbb77e2
commit eaecda6aab
402 changed files with 34368 additions and 62769 deletions
+17
View File
@@ -0,0 +1,17 @@
const path = require('path')
const fs = require('fs')
const process = require('process')
const key = process.argv[2]
const arbDir = path.join(__dirname, '../lib/l10n')
const arbFiles = fs.readdirSync(arbDir)
for (const file of arbFiles) {
const json = JSON.parse(fs.readFileSync(path.join(arbDir, file), { encoding: 'utf8' }))
delete json[key]
delete json[`@${key}`]
fs.writeFileSync(path.join(arbDir, file), JSON.stringify(json, null, 4))
}