diff --git a/packages/create-block/lib/templates/block/save.js.mustache b/packages/create-block/lib/templates/block/save.js.mustache index 705e06973e6de..eeb81e432055c 100644 --- a/packages/create-block/lib/templates/block/save.js.mustache +++ b/packages/create-block/lib/templates/block/save.js.mustache @@ -1,10 +1,3 @@ -/** - * Retrieves the translation of text. - * - * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ - */ -import { __ } from '@wordpress/i18n'; - /** * React hook that is used to mark the block wrapper element. * It provides all the necessary props like the class name. @@ -25,10 +18,7 @@ import { useBlockProps } from '@wordpress/block-editor'; export default function save() { return (

- { __( - '{{title}} – hello from the saved content!', - '{{textdomain}}' - ) } + { '{{title}} – hello from the saved content!' }

); } diff --git a/packages/create-block/lib/templates/es5/index.js.mustache b/packages/create-block/lib/templates/es5/index.js.mustache index 89ea222570061..895cd9f97aebd 100644 --- a/packages/create-block/lib/templates/es5/index.js.mustache +++ b/packages/create-block/lib/templates/es5/index.js.mustache @@ -108,7 +108,7 @@ return el( 'p', useBlockProps.save(), - __( '{{title}} – hello from the saved content!', '{{textdomain}}' ) + '{{title}} – hello from the saved content!', ); }, } );