diff --git a/packages/block-library/src/heading/edit.native.js b/packages/block-library/src/heading/edit.native.js index 5d32ba0b3d5745..fb41a50cc10f2e 100644 --- a/packages/block-library/src/heading/edit.native.js +++ b/packages/block-library/src/heading/edit.native.js @@ -13,7 +13,7 @@ import { isEmpty } from 'lodash'; /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; +import { __, sprintf } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; import { RichText, BlockControls } from '@wordpress/block-editor'; import { createBlock } from '@wordpress/blocks'; @@ -98,13 +98,23 @@ class HeadingEdit extends Component { const tagName = 'h' + level; - const accessibilityLabelLevel = __( 'level' ) + ' ' + level + __( '.' ); - const accessibilityLabelContent = isEmpty( content ) ? __( 'Empty' ) : this.plainTextContent( content ); - return (