diff --git a/packages/block-editor/src/components/preview-options/index.js b/packages/block-editor/src/components/preview-options/index.js index 8e2611f77a4a4d..2b4c0dc7a95fe4 100644 --- a/packages/block-editor/src/components/preview-options/index.js +++ b/packages/block-editor/src/components/preview-options/index.js @@ -13,6 +13,7 @@ import { check } from '@wordpress/icons'; export default function PreviewOptions( { children, + viewLabel, className, isEnabled = true, deviceType, @@ -32,8 +33,7 @@ export default function PreviewOptions( { variant: 'tertiary', className: 'block-editor-post-preview__button-toggle', disabled: ! isEnabled, - /* translators: button label text should, if possible, be under 16 characters. */ - children: __( 'View' ), + children: viewLabel, }; const menuProps = { 'aria-label': __( 'View options' ), diff --git a/packages/edit-post/src/components/device-preview/index.js b/packages/edit-post/src/components/device-preview/index.js index f2dd16d02ed5a9..adf1b9608d6a14 100644 --- a/packages/edit-post/src/components/device-preview/index.js +++ b/packages/edit-post/src/components/device-preview/index.js @@ -49,6 +49,8 @@ export default function DevicePreview() { className="edit-post-post-preview-dropdown" deviceType={ deviceType } setDeviceType={ setPreviewDeviceType } + /* translators: button label text should, if possible, be under 16 characters. */ + viewLabel={ __( 'Preview' ) } > { isViewable && ( diff --git a/packages/edit-site/src/components/header-edit-mode/index.js b/packages/edit-site/src/components/header-edit-mode/index.js index a0883299f2202d..e7cf44c08d4d2d 100644 --- a/packages/edit-site/src/components/header-edit-mode/index.js +++ b/packages/edit-site/src/components/header-edit-mode/index.js @@ -217,6 +217,8 @@ export default function Header( {