diff --git a/plugins/woocommerce-blocks/src/BlockTypes/Cart.php b/plugins/woocommerce-blocks/src/BlockTypes/Cart.php index c5a7a85d9a7..83fb3b15447 100644 --- a/plugins/woocommerce-blocks/src/BlockTypes/Cart.php +++ b/plugins/woocommerce-blocks/src/BlockTypes/Cart.php @@ -250,8 +250,7 @@ class Cart extends AbstractBlock { parent::register_block_type_assets(); $chunks = $this->get_chunks_paths( $this->chunks_folder ); $vendor_chunks = $this->get_chunks_paths( 'vendors--cart-blocks' ); - - $this->register_chunk_translations( array_merge( $chunks, $vendor_chunks ) ); + $this->register_chunk_translations( array_merge( $vendor_chunks, $chunks ) ); } /** diff --git a/plugins/woocommerce-blocks/src/BlockTypes/Checkout.php b/plugins/woocommerce-blocks/src/BlockTypes/Checkout.php index e6c5b315279..0c9a9e2dba5 100644 --- a/plugins/woocommerce-blocks/src/BlockTypes/Checkout.php +++ b/plugins/woocommerce-blocks/src/BlockTypes/Checkout.php @@ -415,8 +415,7 @@ class Checkout extends AbstractBlock { parent::register_block_type_assets(); $chunks = $this->get_chunks_paths( $this->chunks_folder ); $vendor_chunks = $this->get_chunks_paths( 'vendors--cart-blocks' ); - $shared_chunks = [ 'cart-blocks/order-summary-shipping--checkout-blocks/order-summary-shipping-frontend' ]; - $this->register_chunk_translations( array_merge( $chunks, $vendor_chunks, $shared_chunks ) ); + $this->register_chunk_translations( array_merge( $vendor_chunks, $chunks ) ); } /** diff --git a/plugins/woocommerce-blocks/tests/e2e/specs/shopper/cart-checkout/translations.test.js b/plugins/woocommerce-blocks/tests/e2e/specs/shopper/cart-checkout/translations.test.js index 5d27839133e..5b13b758cec 100644 --- a/plugins/woocommerce-blocks/tests/e2e/specs/shopper/cart-checkout/translations.test.js +++ b/plugins/woocommerce-blocks/tests/e2e/specs/shopper/cart-checkout/translations.test.js @@ -53,7 +53,7 @@ describe( 'Shopper → Cart & Checkout → Translations', () => { } ); // The translation of WooCommerce Core is taking over translations of WC Blocks. We have to fix this issue https://github.com/woocommerce/woocommerce-blocks/issues/7775 before we can enable this test. - it.skip( 'User can view translated Checkout block', async () => { + it( 'User can view translated Checkout block', async () => { await shopper.block.goToCheckout(); const contactHeading = await page.$(