From 142107e05dad3ad64c8ae4aafe91d51f8891a69b Mon Sep 17 00:00:00 2001 From: Mario Santos Date: Wed, 28 Feb 2024 13:58:53 +0100 Subject: [PATCH] Translate "dynamic data" string --- packages/block-library/src/image/edit.js | 4 +--- packages/block-library/src/image/image.js | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/image/edit.js b/packages/block-library/src/image/edit.js index 8bd910a8ffcf40..c7b3b034deb42b 100644 --- a/packages/block-library/src/image/edit.js +++ b/packages/block-library/src/image/edit.js @@ -354,9 +354,7 @@ export function ImageEdit( { lockUrlControlsMessage: sprintf( /* translators: %s: Label of the bindings source if exists */ __( 'Connected to %s' ), - blockBindingsSource?.label - ? blockBindingsSource.label - : 'dynamic data' + blockBindingsSource?.label || __( 'dynamic data' ) ), }; }, diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index acdefb3cbfb633..3b17f25cf9bd9f 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -459,9 +459,7 @@ export default function Image( { lockAltControlsMessage: sprintf( /* translators: %s: Label of the bindings source if exists */ __( 'Connected to %s' ), - altBindingSource?.label - ? altBindingSource.label - : 'dynamic data' + altBindingSource?.label || __( 'dynamic data' ) ), lockTitleControls: !! titleBinding && @@ -470,9 +468,7 @@ export default function Image( { lockTitleControlsMessage: sprintf( /* translators: %s: Label of the bindings source if exists */ __( 'Connected to %s' ), - titleBindingSource?.label - ? titleBindingSource.label - : 'dynamic data' + titleBindingSource?.label || __( 'dynamic data' ) ), }; },