Setting the TEXTDOMAIN local variable during the setup:tools step fails on Windows
Open
@jonathanbossenger is already working on this.
Since Jun 14, 2025.
[Component] Environment
- Dominant language
- PHP
- Stars
- 333
- Forks
- 127
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 11
Description
When setting up the local development environment on Windows, the following npm script fails.
"setup:tools": "TEXTDOMAIN=wporg-learn composer exec update-configs"
The reported error:
TEXTDOMAIN=wporg-learn composer exec update-configs
'TEXTDOMAIN' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
In Windows, unlike *nix systems, it seems one needs to use the set command to set a local environment variable
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.