diff --git a/src/BlockTypes/Cart.php b/src/BlockTypes/Cart.php index 83fb3b15447..48f0672d664 100644 --- a/src/BlockTypes/Cart.php +++ b/src/BlockTypes/Cart.php @@ -250,7 +250,8 @@ protected function register_block_type_assets() { 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( $vendor_chunks, $chunks ) ); + $shared_chunks = []; + $this->register_chunk_translations( array_merge( $chunks, $vendor_chunks, $shared_chunks ) ); } /** diff --git a/src/BlockTypes/Checkout.php b/src/BlockTypes/Checkout.php index 0c9a9e2dba5..8d6ab2b4601 100644 --- a/src/BlockTypes/Checkout.php +++ b/src/BlockTypes/Checkout.php @@ -414,8 +414,9 @@ public static function include_token_id_with_payment_methods( $list_item, $token protected function register_block_type_assets() { 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( $vendor_chunks, $chunks ) ); + $vendor_chunks = $this->get_chunks_paths( 'vendors--checkout-blocks' ); + $shared_chunks = [ 'cart-blocks/cart-express-payment--checkout-blocks/express-payment-frontend' ]; + $this->register_chunk_translations( array_merge( $chunks, $vendor_chunks, $shared_chunks ) ); } /**