Background of the issue:
I'm using the woocommerce_rest_prepare_product_object hook to add information in WooCommerce REST API calls in products and orders endpoints. I need to translate the API endpoint.
Symptoms:
I have looked into documentation, but it uses the REST API and is not inside the woocommerce_rest_prepare_product_object hook.
Questions:
How can I translate the WooCommerce REST API endpoint using WPML?