diff --git a/assets/src/admin/site-scan-notice/plugins-with-amp-incompatibility.js b/assets/src/admin/site-scan-notice/plugins-with-amp-incompatibility.js index 6b854772ed8..301c7bf3c2d 100644 --- a/assets/src/admin/site-scan-notice/plugins-with-amp-incompatibility.js +++ b/assets/src/admin/site-scan-notice/plugins-with-amp-incompatibility.js @@ -7,7 +7,7 @@ import { AMP_COMPATIBLE_PLUGINS_URL, SETTINGS_LINK } from 'amp-site-scan-notice' /** * WordPress dependencies */ -import { useContext, useMemo } from '@wordpress/element'; +import { createInterpolateElement, useContext, useMemo } from '@wordpress/element'; import { __, _n, sprintf } from '@wordpress/i18n'; /** @@ -57,22 +57,26 @@ export function PluginsWithAmpIncompatibility( { pluginsWithAmpIncompatibility } key={ pluginWithAmpIncompatibility.slug } className="amp-site-scan-notice__source-details" > - %1$s on %2$d URL', - '%1$s on %2$d URLs', + + { + createInterpolateElement( + sprintf( + /* translators: 1: plugin name; 2: number of URLs with AMP validation issues. */ + _n( + '%1$s on %2$d URL', + '%1$s on %2$d URLs', + pluginWithAmpIncompatibility.urls.length, + 'amp', + ), + pluginNames[ pluginWithAmpIncompatibility.slug ], pluginWithAmpIncompatibility.urls.length, - 'amp', ), - pluginNames[ pluginWithAmpIncompatibility.slug ], - pluginWithAmpIncompatibility.urls.length, - ), - } } - /> + { + b: , + }, + ) + } +