Skip to content

Commit

Permalink
BlockRemovalWarningModal: Fix incorrect '_n' usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jun 30, 2023
1 parent dec307c commit f339109
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 f339109

Please sign in to comment.