Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 5e3994c

Browse files
mikejolleysenadir
authored andcommitted
Translator comments need to immedietely precede strings
1 parent 44630cf commit 5e3994c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/js/blocks/active-filters/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ import { formatPrice } from '@woocommerce/base-utils';
1111
*/
1212
export const formatPriceRange = ( minPrice, maxPrice ) => {
1313
if ( Number.isFinite( minPrice ) && Number.isFinite( maxPrice ) ) {
14-
/* translators: %s min price, %s max price */
1514
return sprintf(
15+
/* translators: %s min price, %s max price */
1616
__( 'Between %s and %s', 'woo-gutenberg-products-block' ),
1717
formatPrice( minPrice ),
1818
formatPrice( maxPrice )
1919
);
2020
}
2121

2222
if ( Number.isFinite( minPrice ) ) {
23-
/* translators: %s min price */
2423
return sprintf(
24+
/* translators: %s min price */
2525
__( 'From %s', 'woo-gutenberg-products-block' ),
2626
formatPrice( minPrice )
2727
);
2828
}
2929

30-
/* translators: %s max price */
3130
return sprintf(
31+
/* translators: %s max price */
3232
__( 'Up to %s', 'woo-gutenberg-products-block' ),
3333
formatPrice( maxPrice )
3434
);

0 commit comments

Comments
 (0)