diff --git a/plugins/woocommerce-blocks/assets/js/base/components/reviews/review-list-item/index.js b/plugins/woocommerce-blocks/assets/js/base/components/reviews/review-list-item/index.js index a1fa5dc021c..73a3770a4c4 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/reviews/review-list-item/index.js +++ b/plugins/woocommerce-blocks/assets/js/base/components/reviews/review-list-item/index.js @@ -124,22 +124,19 @@ function getReviewRating( review ) { const starStyle = { width: ( rating / 5 ) * 100 + '%' /* stylelint-disable-line */, }; + const ratingText = sprintf( + /* Translators: %f is referring to the average rating value */ + __( 'Rated %f out of 5', 'woo-gutenberg-products-block' ), + rating + ); return (
- - { sprintf( - /* Translators: %f to the average rating for the review. */ - __( - 'Rated %f out of 5', - 'woo-gutenberg-products-block' - ), - rating - ) } - + { ratingText }
);