i18n-command
i18n-command copied to clipboard
Undefined method WP_CLI\I18n\MakePotCommand::get_file_data_from_string
I got this error when trying to extract .pot file. When i delete i18n-command package it is working.
You said here, don't need to install this package because it is already in wp cli. But update-po command not registered in wp cli core. So i install i18n-command package to make it work. But in this time, make-pot command not working.
PHP Fatal error: Uncaught Error: Call to undefined method WP_CLI\I18n\MakePotCommand::get_file_data_from_string() in phar:///usr/local/bin/wp/vendor/wp-cli/i18n-command/src/IterableCodeExtractor.php:58
Duplicate of #336
Please try wp cli update --nightly