You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Description
I would like newly-created blocks to have the correct
textdomain
block.json value, rather than defaulting to theslug
.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.jsontextdomain
field. This is a step that even the most experienced developer is prone miss.The text was updated successfully, but these errors were encountered: