WordPress / WordPress/Learn

Setting the TEXTDOMAIN local variable during the setup:tools step fails on Windows

Open
#3,188 3 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.