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

Commit

Permalink
Translate the prefixes passed to post-terms in product-meta. (#11811)
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljseay authored Nov 24, 2023
1 parent 82aa91a commit 90d9e2f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
import { InnerBlockTemplate } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -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',
},
],
Expand Down

0 comments on commit 90d9e2f

Please sign in to comment.