Skip to content

Commit a36bf72

Browse files
committed
Explicitly pass --domain to make-pot
The default value for `--domain` is the project slug when `Text Domain` is not specified in the main plugin or theme file. Explicitly passing the text domain avoids the scenario where someone checks the repository out in a folder with a custom name. Also adds `vendor` and `node_modules` to the `--exclude` flag.
1 parent 57b099f commit a36bf72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"i18n-mo": "vendor/bin/wp i18n make-mo ./languages",
7373
"i18n-php": "vendor/bin/wp i18n make-php ./languages",
7474
"i18n-po": "vendor/bin/wp i18n update-po ./languages/wp-module-deactivation.pot ./languages",
75-
"i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-deactivation.pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-deactivation/issues\",\"POT-Creation-Date\":\"2024-12-12T07:59:34+00:00\"}' --exclude=tests,wordpress",
75+
"i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-deactivation.pot --domain=wp-module-deactivation --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-deactivation/issues\",\"POT-Creation-Date\":\"2024-12-12T07:59:34+00:00\"}' --exclude=tests,vendor,node_modules,wordpress",
7676
"lint": [
7777
"vendor/bin/phpcs --standard=phpcs.xml -s ."
7878
],

0 commit comments

Comments
 (0)