aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-02-18 23:03:07 +0100
committer0neGal <mail@0negal.com>2024-02-18 23:15:50 +0100
commitccde19d82a1a8fd3c5ea20efa31a0e18393e14fe (patch)
tree8b3fcebd1583d1c15c72f41d20bbdea5a111168d /package.json
parent4385ad45b0c4cb9a46f387ed3b54bd363f3de2ef (diff)
downloadViper-ccde19d82a1a8fd3c5ea20efa31a0e18393e14fe.tar.gz
Viper-ccde19d82a1a8fd3c5ea20efa31a0e18393e14fe.zip
added a lot more functionality to scripts/langs.js
It's not capable of formatting language files, and now has a prompt interface for editing and adding missing localization strings. This removes the need for manually editing localization files beyond `en.json`, it'll still be edited manually. But maintainers will no longer have to open any localization files. I also updated the documentation for contributing to localizations.
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/package.json b/package.json
index 253e1b4..463f8f0 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,9 @@
}
},
"scripts": {
- "langs": "node scripts/langs.js",
+ "langs:check": "node scripts/langs.js --check",
+ "langs:format": "node scripts/langs.js --format",
+ "langs:localize": "node scripts/langs.js --localize",
"start": "npx electron src/index.js",
"debug": "npm run devtools",
"devtools": "npx electron src/index.js --devtools",
@@ -49,6 +51,8 @@
"homepage": "https://github.com/0neGal/viper#readme",
"dependencies": {
"electron-updater": "^4.6.1",
+ "enquirer": "^2.4.1",
+ "flattenizer": "^1.1.3",
"follow-redirects": "^1.15.4",
"fs-extra": "^10.0.0",
"fuse.js": "^6.5.3",