🔧 Improve translation scripts (#3013)
This commit is contained in:
@@ -10,9 +10,12 @@
|
||||
"scripts": {
|
||||
"dev": "bud dev",
|
||||
"build": "bud build",
|
||||
"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"
|
||||
"translate": "yarn translate:pot && yarn translate:update",
|
||||
"translate:pot": "wp i18n make-pot . ./resources/lang/sage.pot --include=\"app,resources\"",
|
||||
"translate:update": "for filename in ./resources/lang/*.po; do msgmerge -U $filename ./resources/lang/sage.pot; done; rm -f ./resources/lang/*.po~",
|
||||
"translate:compile": "yarn translate:mo && yarn translate:js",
|
||||
"translate:js": "wp i18n make-json ./resources/lang --pretty-print",
|
||||
"translate:mo": "wp i18n make-mo ./resources/lang ./resources/lang"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@roots/bud": "5.7.7",
|
||||
|
||||
Reference in New Issue
Block a user