mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
v2
This commit is contained in:
@@ -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))
|
||||
}
|
||||
Reference in New Issue
Block a user