wp-cli / i18n-command

Provides internationalization tools for WordPress projects.
MIT License
96 stars 52 forks source link

Document example of how to format the --headers parameter in the `i18n make-pot` command #382

Closed helgatheviking closed 5 months ago

helgatheviking commented 5 months ago

The docu says it's a JSON-formatted array, but I've been fighting to get it to run via composer and can't see to figure it out. An example might be nice.... especially for the "Report-Msgid-Bugs-To" header.

swissspidy commented 5 months ago
wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{"Report-Msgid-Bugs-To":"https://github.com/hello-world/hello-world/"}'

If you'd like to submit a PR with some examples that you think would be useful for others, we appreciate all contributions :)