Problem:
Go to second language cart, it redirect to main language cart Solution:
This is happening due to some filtering in the code and the way the theme calls for the permalink. The issue is that we are not filtering the cart page permalink.
and the theme is calling it directly:wc_get_cart_url()
Please use the following workaround, you can add this to your theme's functions.php file.
add_filter('option_woocommerce_cart_page_id', 'test');
function test ($id){
$my_current_lang = apply_filters( 'wpml_current_language', NULL );
return apply_filters( 'wpml_object_id', $id, 'page' );
}