diff --git a/plugins/woocommerce-blocks/assets/js/base/components/product-price/index.js b/plugins/woocommerce-blocks/assets/js/base/components/product-price/index.js index b47acbb51db..3206f4fe470 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/product-price/index.js +++ b/plugins/woocommerce-blocks/assets/js/base/components/product-price/index.js @@ -1,11 +1,12 @@ /** * External dependencies */ -import { __ } from '@wordpress/i18n'; +import { __, sprintf } from '@wordpress/i18n'; import FormattedMonetaryAmount from '@woocommerce/base-components/formatted-monetary-amount'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { createInterpolateElement } from 'wordpress-element'; +import { formatPrice } from '@woocommerce/price-format'; /** * Internal dependencies @@ -21,25 +22,38 @@ const PriceRange = ( { } ) => { return ( <> - + { sprintf( + /* translators: %1$s min price, %2$s max price */ + __( + 'Price between %1$s and %2$s', + 'woo-gutenberg-products-block' + ), + formatPrice( minPrice ), + formatPrice( maxPrice ) ) } - currency={ currency } - value={ minPrice } - style={ priceStyle } - /> -  —  - + + + +  —  + + ); };