Added translation wrapping

This commit is contained in:
Justin Foell
2021-01-29 15:58:35 -06:00
parent 974cd2e908
commit a29c1b64ed
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const EmbedControls = ( props ) => {
<BlockControls>
<Toolbar>
<Button
label={ __( 'Edit URL' ) }
label={ __( 'Edit URL', 'wp-strava' ) }
onClick={ switchBackToURLInput }
>
<Icon icon="edit" />
+5 -5
View File
@@ -11,6 +11,8 @@ const EmbedPlaceholder = ( props ) => {
const {
icon,
label,
instructions,
placeholder,
value,
onSubmit,
onChange,
@@ -21,9 +23,7 @@ const EmbedPlaceholder = ( props ) => {
icon={ <BlockIcon icon={ icon } showColors /> }
label={ label }
className="wp-block-embed"
instructions={ __(
'Paste a link to the Strava Activity you want to display on your site.'
) }
instructions={ instructions }
>
<form onSubmit={ onSubmit }>
<input
@@ -31,11 +31,11 @@ const EmbedPlaceholder = ( props ) => {
value={ value || '' }
className="components-placeholder__input"
aria-label={ label }
placeholder={ __( 'Enter Activity URL to embed here…' ) }
placeholder={ placeholder }
onChange={ onChange }
/>
<Button isPrimary type="submit">
{ _x( 'Embed', 'button label' ) }
{ _x( 'Embed', 'button label', 'wp-strava' ) }
</Button>
</form>
</Placeholder>