add 'npm run update-translations' command

This commit is contained in:
Johannes Zellner
2020-11-05 13:13:17 +01:00
parent d56653d946
commit cf1311fe90

View File

@@ -3,7 +3,8 @@
"version": "1.0.0",
"description": "[Cloudron](https://cloudron.io) is the best way to run apps on your server.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"update-translations": "curl https://translate.cloudron.io/download/cloudron/dashboard/?format=zip -o lang.zip && unzip -jo lang.zip -d ./src/translation/ && rm lang.zip"
},
"repository": {
"type": "git",