Skip to content

Commit 61ecba4

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 177f1f2 commit 61ecba4

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
@@ -70,7 +70,7 @@
7070
"fix": [
7171
"vendor/bin/phpcbf . --standard=phpcs.xml"
7272
],
73-
"i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-onboarding.pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-onboarding/issues\",\"POT-Creation-Date\":\"2024-11-18T07:59:34+00:00\"}' --exclude=assets,tests,src,wordpress",
73+
"i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-onboarding.pot --domain=wp-module-onboarding --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-onboarding/issues\",\"POT-Creation-Date\":\"2024-11-18T07:59:34+00:00\"}' --exclude=assets,tests,src,node_modules,vendor,wordpress",
7474
"i18n-po": "vendor/bin/wp i18n update-po ./languages/wp-module-onboarding.pot ./languages",
7575
"i18n-mo": "vendor/bin/wp i18n make-mo ./languages",
7676
"i18n-php": "vendor/bin/wp i18n make-php ./languages",

0 commit comments

Comments
 (0)