🔧 Use wp i18n update-po for updating PO files (#3081)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"build": "bud build",
|
||||
"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:update": "wp i18n update-po ./resources/lang/sage.pot ./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"
|
||||
|
||||
Reference in New Issue
Block a user