Hello,
I’m using a Sage with Bedrock / Wordpress in a DDEV container.
Now I tried to use the default script translate:pot in the Sage theme folder to create language files.
But i get the following output
$ yarn translate:pot
yarn run v1.22.19
$ wp i18n make-pot . ./resources/lang/sage.pot --include="app,resources"
/bin/sh: wp: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I tried several things like adding ddev in front of the translate:pot’s commands, but nothing is working.
Do I miss a config setting or how can I use these commands?
WP-CLI is working when adding ddev before the command.
I can call
ddev wp db export sample.sql
to export the current database.
But same scheme does not work with
"translate:pot": "ddev wp i18n make-pot . ./resources/lang/sage.pot --include=\"app,resources\"",