Skip to content

Commit 9529ca2

Browse files
Infinite-NullInfinite-Nullt-hamano
authored
Create Block: Add --textdomain in create-block README (#69927)
* Add `--textdomain` option for internationalization in create-block README * Update README in `create-block` command Co-authored-by: Infinite-Null <[email protected]> Co-authored-by: t-hamano <[email protected]>
1 parent 75bafad commit 9529ca2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/create-block/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ The rest of the configuration is set to all default values unless overridden wit
6767
--wp-scripts enable integration with `@wordpress/scripts` package
6868
--no-wp-scripts disable integration with `@wordpress/scripts` package
6969
--wp-env enable integration with `@wordpress/env` package
70+
--textdomain <value> text domain for internationalization
7071
-h, --help output usage information
7172
```
7273

@@ -108,6 +109,14 @@ With this argument, the `create-block` package will add to the generated plugin
108109
$ npx @wordpress/create-block@latest --wp-env
109110
```
110111

112+
#### `--textdomain`
113+
114+
With this argument, the `create-block` package will a generate a block with the provided text domain. If not specified, the block’s slug is used as the default text domain.
115+
116+
```bash
117+
$ npx @wordpress/create-block@latest --textdomain my-custom-domain
118+
```
119+
111120
#### `--help`
112121

113122
With this argument, the `create-block` package outputs usage information.

0 commit comments

Comments
 (0)