My local development environment (Local by Flywheel), enables Xdebug by default. When trying to run yarn translate
, I run into this error Uncaught Error: Maximum function nesting level of ‘256’ reached, aborting!
You can fix this error by replacing
wp i18n make-
by php -d xdebug.max_nesting_level=512 $(which wp) i18n make-
in your package.json.
See: https://github.com/wp-cli/i18n-command/issues/80#issuecomment-572451958