From ae9fe80367662faa4926175e4a2b67ec8ce006b1 Mon Sep 17 00:00:00 2001 From: AhmarZaidi Date: Thu, 2 Jan 2025 13:37:15 +0530 Subject: [PATCH] Use integer instead of string placeholders --- .../block-editor/src/components/image-size-control/index.js | 2 +- packages/block-library/src/button/edit.js | 2 +- packages/block-library/src/search/edit.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/image-size-control/index.js b/packages/block-editor/src/components/image-size-control/index.js index b67c2d59a4c1f..3432e85728fd3 100644 --- a/packages/block-editor/src/components/image-size-control/index.js +++ b/packages/block-editor/src/components/image-size-control/index.js @@ -139,7 +139,7 @@ export default function ImageSizeControl( { value={ scale } label={ sprintf( /* translators: Percentage value. */ - __( '%1$s%%' ), + __( '%1$d%%' ), scale ) } /> diff --git a/packages/block-library/src/button/edit.js b/packages/block-library/src/button/edit.js index 30530f65c263e..06e10f604650e 100644 --- a/packages/block-library/src/button/edit.js +++ b/packages/block-library/src/button/edit.js @@ -150,7 +150,7 @@ function WidthPanel( { selectedWidth, setAttributes } ) { value={ widthValue } label={ sprintf( /* translators: Percentage value. */ - __( '%1$s%%' ), + __( '%1$d%%' ), widthValue ) } /> diff --git a/packages/block-library/src/search/edit.js b/packages/block-library/src/search/edit.js index 2d16f309f701a..b4ac37220c816 100644 --- a/packages/block-library/src/search/edit.js +++ b/packages/block-library/src/search/edit.js @@ -472,7 +472,7 @@ export default function SearchEdit( { value={ widthValue } label={ sprintf( /* translators: Percentage value. */ - __( '%1$s%%' ), + __( '%1$d%%' ), widthValue ) } />