Translate the prefixes passed to post-terms in product-meta. (https://github.com/woocommerce/woocommerce-blocks/pull/11811)
This commit is contained in:
parent
f60f10ad59
commit
9168b47f33
|
@ -3,6 +3,7 @@
|
||||||
*/
|
*/
|
||||||
import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
|
import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
|
||||||
import { InnerBlockTemplate } from '@wordpress/blocks';
|
import { InnerBlockTemplate } from '@wordpress/blocks';
|
||||||
|
import { __ } from '@wordpress/i18n';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
|
@ -28,14 +29,17 @@ const Edit = () => {
|
||||||
[
|
[
|
||||||
'core/post-terms',
|
'core/post-terms',
|
||||||
{
|
{
|
||||||
prefix: 'Category: ',
|
prefix: __(
|
||||||
|
'Category: ',
|
||||||
|
'woo-gutenberg-products-block'
|
||||||
|
),
|
||||||
term: 'product_cat',
|
term: 'product_cat',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'core/post-terms',
|
'core/post-terms',
|
||||||
{
|
{
|
||||||
prefix: 'Tags: ',
|
prefix: __( 'Tags: ', 'woo-gutenberg-products-block' ),
|
||||||
term: 'product_tag',
|
term: 'product_tag',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue