Fix: use correct type specifier for rating HTML (https://github.com/woocommerce/woocommerce-blocks/pull/7592)

This commit is contained in:
Tung Du 2022-11-08 15:34:08 +07:00 committed by GitHub
parent 9a2a4f5c9f
commit 7467be8605
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ const Rating = ( {
const ratingHTML = {
__html: sprintf(
/* translators: %f is referring to the rating value */
__( 'Rated %f out of 5', 'woo-gutenberg-products-block' ),
/* translators: %s is the rating value wrapped in HTML strong tags. */
__( 'Rated %s out of 5', 'woo-gutenberg-products-block' ),
sprintf( '<strong class="rating">%f</strong>', rating )
),
};