Translate the prefixes passed to post-terms in product-meta. (https://github.com/woocommerce/woocommerce-blocks/pull/11811)

This commit is contained in:
Sam Seay 2023-11-24 12:33:28 +08:00 committed by GitHub
parent f60f10ad59
commit 9168b47f33
1 changed files with 6 additions and 2 deletions

View File

@ -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',
},
],