Background of the issue:
I am trying to create custom navigation links for WooCommerce product categories in the file woocommerce/archive-product.php. Here's the code I have: Coin des Girls – Bain Coin des Girls – Lingerie Coin des Girls – Prêt-à-porter . The 3 categories you see in the code are in French only (the default language). Link to a page where the issue can be seen: hidden link
Symptoms:
The get_term_link() function randomly generates links that direct users to English or German, where the category does not exist in those languages. I expected that if I'm on French, the user should be directed to the French category link. Instead, I got links randomly directing to English or German.
Questions:
Why does get_term_link() generate links to non-existent categories in English or German?
How can I ensure that users are directed to the correct French category link?