Re-add i18n related scripts/tasks (#2958)

Scripts were accidentally removed in PR #2643.
This commit is contained in:
strarsis
2022-02-09 00:29:54 +01:00
committed by GitHub
parent 85366aeb06
commit 9857121ed0

View File

@@ -19,7 +19,10 @@
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint resources/scripts",
"lint:css": "stylelint \"resources/**/*.{css,scss,vue}\"",
"test": "npm run lint"
"test": "npm run lint",
"translate": "npm run translate:pot && npm run translate:js",
"translate:pot": "wp i18n make-pot . ./resources/lang/sage.pot --ignore-domain --include=\"app,resources\"",
"translate:js": "wp i18n make-json ./resources/lang --pretty-print"
},
"devDependencies": {
"@roots/bud": "^5.2.0",