diff --git a/features/scaffold-block.feature b/features/scaffold-block.feature index 45bdac7bd..48239d42e 100644 --- a/features/scaffold-block.feature +++ b/features/scaffold-block.feature @@ -65,7 +65,7 @@ Feature: WordPress block code scaffolding """ And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain: """ - title: __( 'The green mile' ), + title: __( 'The green mile', 'movies' ), """ And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain: """ @@ -73,11 +73,11 @@ Feature: WordPress block code scaffolding """ And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain: """ - __( 'Hello from the editor!' ) + __( 'Hello from the editor!', 'movies' ) """ And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain: """ - __( 'Hello from the saved content!' ) + __( 'Hello from the saved content!', 'movies' ) """ And the {PLUGIN_DIR}/blocks/the-green-mile/editor.css file should exist And the {PLUGIN_DIR}/blocks/the-green-mile/editor.css file should contain: @@ -98,7 +98,7 @@ Feature: WordPress block code scaffolding When I run `wp scaffold block shawshank-redemption --plugin=movies --title="The Shawshank Redemption"` Then the {PLUGIN_DIR}/blocks/shawshank-redemption/index.js file should contain: """ - title: __( 'The Shawshank Redemption' ), + title: __( 'The Shawshank Redemption', 'movies' ), """ And STDOUT should be: """ diff --git a/templates/block-index-js.mustache b/templates/block-index-js.mustache index 7df0f753c..9d46a3e7f 100644 --- a/templates/block-index-js.mustache +++ b/templates/block-index-js.mustache @@ -24,7 +24,7 @@ * This is the display title for your block, which can be translated with `i18n` functions. * The block inserter will show this name. */ - title: __( '{{title_ucfirst_js}}' ), + title: __( '{{title_ucfirst_js}}', '{{namespace}}' ), {{#dashicon}} /** @@ -60,7 +60,7 @@ return el( 'p', { className: props.className }, - __( 'Hello from the editor!' ) + __( 'Hello from the editor!', '{{namespace}}' ) ); }, @@ -75,7 +75,7 @@ return el( 'p', {}, - __( 'Hello from the saved content!' ) + __( 'Hello from the saved content!', '{{namespace}}' ) ); } } );