Renew .pot Translations with WP-CLI

WP-CLI

wp i18n make-pot wp-content/plugins/plugin-name/ wp-content/plugins/plugin-name/languages/plugin-name.pot --exclude='wp-content/plugins/plugin-name/assets, wp-content/plugins/plugin-name/node_modules, wp-content/plugins/plugin-name/vendor'Code language: Bash (bash)

WP-ENV

wp-env run cli wp i18n make-pot wp-content/plugins/plugin-name/ wp-content/plugins/plugin-name/languages/plugin-name.pot --exclude='wp-content/plugins/plugin-name/assets, wp-content/plugins/plugin-name/node_modules, wp-content/plugins/plugin-name/vendor'Code language: Bash (bash)

Docker Compose

docker-compose run --rm wpcli i18n make-pot wp-content/plugins/plugin-name/ wp-content/plugins/plugin-name/languages/plugin-name.pot --exclude='wp-content/plugins/plugin-name/assets, wp-content/plugins/plugin-name/node_modules, wp-content/plugins/plugin-name/vendor'Code language: Bash (bash)

Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.