diff --git a/assets/js/blocks/related-posts/Edit.js b/assets/js/blocks/related-posts/Edit.js index c734faacab..3530076d51 100644 --- a/assets/js/blocks/related-posts/Edit.js +++ b/assets/js/blocks/related-posts/Edit.js @@ -66,7 +66,7 @@ class Edit extends Component { /> - + setAttributes({ number: value })} @@ -76,8 +76,12 @@ class Edit extends Component {
{displayPosts === false || displayPosts.length === 0 ? ( - - {posts === false ? : __('No related posts yet.')} + + {posts === false ? ( + + ) : ( + __('No related posts yet.', 'elasticpress') + )} ) : (
    diff --git a/assets/js/blocks/related-posts/block.js b/assets/js/blocks/related-posts/block.js index 647c8f9747..eb6297d1b5 100644 --- a/assets/js/blocks/related-posts/block.js +++ b/assets/js/blocks/related-posts/block.js @@ -1,9 +1,11 @@ import Edit from './Edit'; +const { __ } = wp.i18n; + const { registerBlockType } = wp.blocks; registerBlockType('elasticpress/related-posts', { - title: 'Related Posts (ElasticPress)', + title: __('Related Posts (ElasticPress)', 'elasticpress'), supports: { align: true, },