Skip to content

Commit

Permalink
Speak the amount of moved blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
n2erjo00 committed Oct 31, 2024
1 parent 10d4ceb commit 20deaae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/block-editor/src/components/block-tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,13 @@ export default function BlockTools( {
? clientIds.length
: 1;
const message = sprintf(
// translators: %s: term "block" in either singular or plural form.
_n( '%s moved.', '%s moved.', blockLength ),
blockLength > 1 ? __( 'Blocks' ) : __( 'Block' )
// translators: %d: the name of the block that has been moved
_n(
'%d block moved.',
'%d blocks moved.',
clientIds.length
),
blockLength
);
speak( message );
}
Expand Down

0 comments on commit 20deaae

Please sign in to comment.