Skip to content

Commit

Permalink
fix: Simplify the sprintf translations for percentage widths
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Jan 10, 2025
1 parent ddfbdcc commit 9a9fdf7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function ImageSizeControl( {
value={ scale }
label={ sprintf(
/* translators: Percentage value. */
__( '%1$d%%' ),
__( '%d%%' ),
scale
) }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function WidthPanel( { selectedWidth, setAttributes } ) {
value={ widthValue }
label={ sprintf(
/* translators: Percentage value. */
__( '%1$d%%' ),
__( '%d%%' ),
widthValue
) }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default function SearchEdit( {
value={ widthValue }
label={ sprintf(
/* translators: Percentage value. */
__( '%1$d%%' ),
__( '%d%%' ),
widthValue
) }
/>
Expand Down

0 comments on commit 9a9fdf7

Please sign in to comment.