Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the textdomain block.json value #683

Open
goodguyry opened this issue Dec 20, 2024 · 0 comments
Open

Correct the textdomain block.json value #683

goodguyry opened this issue Dec 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@goodguyry
Copy link
Member

Description

I would like newly-created blocks to have the correct textdomain block.json value, rather than defaulting to the slug.

It appears as though wp-create-block will accept textdomain as an option, though the code is a bit difficult to follow.

I could see this either being a prompt or read from an env file.

Use Case

Currently, because wp-create-block defaults to the block's slug for the text domain, all new blocks have to immediately be modified to correct the block.json textdomain field. This is a step that even the most experienced developer is prone miss.

@goodguyry goodguyry added the enhancement New feature or request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant