woocommerce/plugins/woocommerce-blocks/assets/js/blocks/classic-template/constants.ts

49 lines
1.0 KiB
TypeScript
Raw Normal View History

/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
export const BLOCK_SLUG = 'woocommerce/legacy-template';
/**
* Internal dependencies
*/
import { TemplateDetails } from './types';
export const TEMPLATES: TemplateDetails = {
'single-product': {
title: __(
'WooCommerce Single Product Block',
'woo-gutenberg-products-block'
),
placeholder: 'single-product',
},
'archive-product': {
title: __(
'WooCommerce Product Grid Block',
'woo-gutenberg-products-block'
),
placeholder: 'archive-product',
},
'taxonomy-product_cat': {
title: __(
'WooCommerce Product Taxonomy Block',
'woo-gutenberg-products-block'
),
placeholder: 'archive-product',
},
'taxonomy-product_tag': {
title: __(
'WooCommerce Product Tag Block',
'woo-gutenberg-products-block'
),
placeholder: 'archive-product',
},
'product-search-results': {
title: __(
'WooCommerce Product Search Results Block',
'woo-gutenberg-products-block'
),
placeholder: 'archive-product',
},
};