diff --git a/plugins/woocommerce-admin/packages/components/src/filters/advanced/date-filter.js b/plugins/woocommerce-admin/packages/components/src/filters/advanced/date-filter.js index 34b0598bbec..35fd94c18d2 100644 --- a/plugins/woocommerce-admin/packages/components/src/filters/advanced/date-filter.js +++ b/plugins/woocommerce-admin/packages/components/src/filters/advanced/date-filter.js @@ -7,7 +7,7 @@ import interpolateComponents from 'interpolate-components'; import { SelectControl } from '@wordpress/components'; import { find, partial } from 'lodash'; import classnames from 'classnames'; -import { sprintf, __, _x } from '@wordpress/i18n'; +import { __, _x } from '@wordpress/i18n'; /** * WooCommerce dependencies @@ -191,10 +191,7 @@ class DateFilter extends Component { const { labels, rules } = config; const screenReaderText = this.getScreenReaderText( filter, config ); const children = interpolateComponents( { - mixedString: sprintf( - '{{title}}%s{{/title}} {{rule /}} {{filter /}}', - labels.title - ), + mixedString: labels.title, components: { title: , rule: ( diff --git a/plugins/woocommerce-admin/packages/components/src/filters/advanced/number-filter.js b/plugins/woocommerce-admin/packages/components/src/filters/advanced/number-filter.js index 0cf98e8e61a..830e66cbfb3 100644 --- a/plugins/woocommerce-admin/packages/components/src/filters/advanced/number-filter.js +++ b/plugins/woocommerce-admin/packages/components/src/filters/advanced/number-filter.js @@ -190,10 +190,7 @@ class NumberFilter extends Component { const { labels, rules } = config; const children = interpolateComponents( { - mixedString: sprintf( - '{{title}}%s{{/title}} {{rule /}} {{filter /}}', - labels.title - ), + mixedString: labels.title, components: { title: , rule: ( diff --git a/plugins/woocommerce-admin/packages/components/src/filters/advanced/search-filter.js b/plugins/woocommerce-admin/packages/components/src/filters/advanced/search-filter.js index 4adee1a8741..88687f8e0f3 100644 --- a/plugins/woocommerce-admin/packages/components/src/filters/advanced/search-filter.js +++ b/plugins/woocommerce-admin/packages/components/src/filters/advanced/search-filter.js @@ -8,7 +8,6 @@ import { find, isEqual, partial } from 'lodash'; import PropTypes from 'prop-types'; import interpolateComponents from 'interpolate-components'; import classnames from 'classnames'; -import { sprintf } from '@wordpress/i18n'; /** * Internal dependencies @@ -78,10 +77,7 @@ class SearchFilter extends Component { const { key, rule } = filter; const { input, labels, rules } = config; const children = interpolateComponents( { - mixedString: sprintf( - '{{title}}%s{{/title}} {{rule /}} {{filter /}}', - labels.title - ), + mixedString: labels.title, components: { title: , rule: ( diff --git a/plugins/woocommerce-admin/packages/components/src/filters/advanced/select-filter.js b/plugins/woocommerce-admin/packages/components/src/filters/advanced/select-filter.js index 461b2186778..d497f183e5a 100644 --- a/plugins/woocommerce-admin/packages/components/src/filters/advanced/select-filter.js +++ b/plugins/woocommerce-admin/packages/components/src/filters/advanced/select-filter.js @@ -8,7 +8,6 @@ import { find, partial } from 'lodash'; import PropTypes from 'prop-types'; import interpolateComponents from 'interpolate-components'; import classnames from 'classnames'; -import { sprintf } from '@wordpress/i18n'; /** * Internal dependencies @@ -70,10 +69,7 @@ class SelectFilter extends Component { const { key, rule, value } = filter; const { labels, rules } = config; const children = interpolateComponents( { - mixedString: sprintf( - '{{title}}%s{{/title}} {{rule /}} {{filter /}}', - labels.title - ), + mixedString: labels.title, components: { title: , rule: (