diff --git a/packages/block-library/src/read-more/block.json b/packages/block-library/src/read-more/block.json index d4ab0dd8cace0..9e4fc84d193f7 100644 --- a/packages/block-library/src/read-more/block.json +++ b/packages/block-library/src/read-more/block.json @@ -15,11 +15,6 @@ "default": "_self" } }, - "example": { - "attributes": { - "content": "Read More" - } - }, "usesContext": [ "postId" ], "supports": { "html": false, diff --git a/packages/block-library/src/read-more/index.js b/packages/block-library/src/read-more/index.js index 497cd77f429e6..c6e825085d01a 100644 --- a/packages/block-library/src/read-more/index.js +++ b/packages/block-library/src/read-more/index.js @@ -1,6 +1,7 @@ /** * WordPress dependencies */ +import { _x } from '@wordpress/i18n'; import { link as icon } from '@wordpress/icons'; /** @@ -16,6 +17,11 @@ export { metadata, name }; export const settings = { icon, edit, + example: { + attributes: { + content: _x( 'Read More', 'Example text for the Read More block' ), + }, + }, }; export const init = () => initBlock( { name, metadata, settings } );