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
WPML: remember user’s language choice
There is no built-in function to remember a user’s language choice in WPML, and redirect him accordingly. WPML can only redirect returning visitors according to their browser language. I figured out a way to store the user’s language choice, and redirect the user to his preferred language when he revisits your website. There are 3 …