-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Create Block: Add --textdomain
flag to create block tool
#69802
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
Create Block: Add --textdomain
flag to create block tool
#69802
Conversation
--textdomain
flag for internationalization support--textdomain
flag to create block tool
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
--textdomain
flag to create block tool--textdomain
flag to create block tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks and tests great. Nice one. Can you add an entry to the CHANGELOG file:
https://github.com/WordPress/gutenberg/blob/trunk/packages/create-block/CHANGELOG.md
This is the only task left to land this PR.
I enabled auto-merge for this PR. It looks like the CHANGELOG file has some merge conflicts to resolve now. |
Head branch was pushed to by a user without write access
Hi @gziolo, |
Rebasing to fix the failing tests, which were recently fixed in #69912 🚀 |
Head branch was pushed to by a user without write access
0f1cae4
to
d24229e
Compare
No worries. There is something strange happening with PHPUnit tests. I will set it to auto-merge again. |
@Infinite-Null Do you mind submitting a follow-up PR to update the README? gutenberg/packages/create-block/README.md Lines 55 to 71 in a083c7e
|
Sure @t-hamano 👍, |
…#69802) * feat: add --textdomain option for internationalization support * Add changelog entry Co-authored-by: Infinite-Null <ankitkumarshah@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org> Co-authored-by: michakrapp <mfgmicha@git.wordpress.org>
What?
Add a
--textdomain
parameter option to the create block tool.Closes: #69798
Why?
Currently, when creating blocks with the
--no-plugin
parameter in non-interactive mode, the block slug is automatically used as the textdomain. This is problematic when developing a plugin with multiple blocks.Testing Instructions
gh pr checkout #69802
Screencast:
Screen.Recording.2025-04-03.at.12.50.38.PM.mov