Skip to content

Commit

Permalink
BlockRemovalWarningModal: Fix incorrect '_n' usage (#52164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and tellthemachines committed Jul 3, 2023
1 parent 14c54c5 commit 0528766
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Button,
__experimentalHStack as HStack,
} from '@wordpress/components';
import { __, _n } from '@wordpress/i18n';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand Down Expand Up @@ -75,11 +75,9 @@ export function BlockRemovalWarningModal() {
</ul>
) }
<p>
{ _n(
'Removing this block is not advised.',
'Removing these blocks is not advised.',
blockNamesForPrompt.length
) }
{ blockNamesForPrompt.length > 1
? __( 'Removing these blocks is not advised.' )
: __( 'Removing this block is not advised.' ) }
</p>
<HStack justify="right">
<Button variant="tertiary" onClick={ clearRemovalPrompt }>
Expand Down

0 comments on commit 0528766

Please sign in to comment.