Tell us what you are trying to do?
I create a custom function, in my function I create a card in which product details is showing but when translate website card is not showing.
Is there any documentation that you are following?
I attach images so you can understand what I want. In this function I'm showing woocommerce products details in cards but when translate web cards is not showing can you please help me in this matter?
2) In general if you add this in the footer and you are in the product details page it will return the product id based on the language you are. :
global $product;
var_dump( $product->get_id() );
But it will not work if you are on an archive page. You need there to take the id of the product in the original language, find the id of the translated one with WPML Hooks and then retrieve the rest of the details.
3) Please avoid using <wpml-config> . We are using this in our language configuration files. It s not the same( HTML vs XML ) but I am pretty sure that we didn't test such kinds of scenarios in order to find conflicts.