From cbaf8fa4717a73c69a7bf586ab174daee975e361 Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 19 Feb 2024 13:55:53 +1100 Subject: [PATCH] No need for first argument --- .../global-styles/get-global-styles-changes.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/block-editor/src/components/global-styles/get-global-styles-changes.js b/packages/block-editor/src/components/global-styles/get-global-styles-changes.js index fb15355f3b6f9..05ac3429e4b65 100644 --- a/packages/block-editor/src/components/global-styles/get-global-styles-changes.js +++ b/packages/block-editor/src/components/global-styles/get-global-styles-changes.js @@ -203,21 +203,15 @@ export default function getGlobalStylesChanges( next, previous, options = {} ) { switch ( key ) { case 'blocks': { return sprintf( - // translators: %2$s: a list of block names separated by a comma. - _n( '%2$s block.', '%2$s blocks.', changeValuesLength ), - changeValuesLength, + // translators: %s: a list of block names separated by a comma. + _n( '%s block.', '%s blocks.', changeValuesLength ), joinedChangesValue ); } case 'elements': { return sprintf( - // translators: %2$s: a list of element names separated by a comma. - _n( - '%2$s element.', - '%2$s elements.', - changeValuesLength - ), - changeValuesLength, + // translators: %s: a list of element names separated by a comma. + _n( '%s element.', '%s elements.', changeValuesLength ), joinedChangesValue ); }