File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Enhancement
6
+
7
+ - Add support for ` --textdomain ` flag to create block tool ([ #69802 ] ( https://github.com/WordPress/gutenberg/pull/69802 ) ).
8
+
5
9
## 4.65.0 (2025-04-11)
6
10
7
11
## 4.64.0 (2025-03-27)
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ program
63
63
'disable integration with `@wordpress/scripts` package'
64
64
)
65
65
. option ( '--wp-env' , 'enable integration with `@wordpress/env` package' )
66
+ . option ( '--textdomain <value>' , 'text domain for internationalization' )
66
67
. action (
67
68
async (
68
69
slug ,
@@ -77,6 +78,7 @@ program
77
78
wpEnv,
78
79
variant,
79
80
targetDir,
81
+ textdomain,
80
82
}
81
83
) => {
82
84
try {
@@ -110,6 +112,7 @@ program
110
112
wpScripts,
111
113
wpEnv,
112
114
targetDir,
115
+ textdomain,
113
116
} ) . filter ( ( [ , value ] ) => value !== undefined )
114
117
) ;
115
118
@@ -158,7 +161,7 @@ program
158
161
'description' ,
159
162
'dashicon' ,
160
163
'category' ,
161
- ! plugin && 'textdomain' ,
164
+ ! plugin && ! textdomain && 'textdomain' ,
162
165
] . filter ( Boolean ) ,
163
166
variant ,
164
167
optionsValues
@@ -216,5 +219,8 @@ program
216
219
log . info (
217
220
` $ ${ commandName } todo-list --template es5 --title "TODO List"`
218
221
) ;
222
+ log . info (
223
+ ` $ ${ commandName } todo-list --no-plugin --textdomain=my-plugin`
224
+ ) ;
219
225
} )
220
226
. parse ( process . argv ) ;
You can’t perform that action at this time.
0 commit comments