Skip to content

Commit

Permalink
VideoPress: Fix localization of block text
Browse files Browse the repository at this point in the history
  • Loading branch information
jornp committed May 13, 2024
1 parent bb52446 commit 0c5ec8a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { uploadFromLibrary } from '../../../../../hooks/use-uploader';
import { buildVideoPressURL, pickVideoBlockAttributesFromUrl } from '../../../../../lib/url';
import { VIDEOPRESS_VIDEO_ALLOWED_MEDIA_TYPES } from '../../constants';
import { PlaceholderWrapper } from '../../edit';
import { description, title } from '../../index';
import { VideoPressIcon } from '../icons';
import UploadError from './uploader-error.js';
import UploadProgress from './uploader-progress.js';
Expand Down Expand Up @@ -320,8 +319,12 @@ const VideoPressUploader = ( {
className="is-videopress-placeholder"
icon={ <BlockIcon icon={ VideoPressIcon } /> }
labels={ {
title,
instructions: description,
// These strings should match the "title" and "description" in ../../block.json.
title: __( 'VideoPress', 'jetpack-videopress-pkg' ),
instructions: __(
'Embed a video from your media library or upload a new one with VideoPress.',
'jetpack-videopress-pkg'
),
} }
onSelect={ onSelectVideo }
onSelectURL={ onSelectURL }
Expand Down

0 comments on commit 0c5ec8a

Please sign in to comment.