From 90d9e2faa805a100b4b1116bc68dac2e2d705454 Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Fri, 24 Nov 2023 12:33:28 +0800 Subject: [PATCH] Translate the prefixes passed to post-terms in product-meta. (#11811) --- .../atomic/blocks/product-elements/product-meta/edit.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/atomic/blocks/product-elements/product-meta/edit.tsx b/assets/js/atomic/blocks/product-elements/product-meta/edit.tsx index a189cea2c3e..f6ab5077482 100644 --- a/assets/js/atomic/blocks/product-elements/product-meta/edit.tsx +++ b/assets/js/atomic/blocks/product-elements/product-meta/edit.tsx @@ -3,6 +3,7 @@ */ import { InnerBlocks, useBlockProps } from '@wordpress/block-editor'; import { InnerBlockTemplate } from '@wordpress/blocks'; +import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -28,14 +29,17 @@ const Edit = () => { [ 'core/post-terms', { - prefix: 'Category: ', + prefix: __( + 'Category: ', + 'woo-gutenberg-products-block' + ), term: 'product_cat', }, ], [ 'core/post-terms', { - prefix: 'Tags: ', + prefix: __( 'Tags: ', 'woo-gutenberg-products-block' ), term: 'product_tag', }, ],