Background of the issue:
I am trying to ensure that product categories with the same slug display the correct language version. Specifically, I want the Dutch 'sneakers' product category to show in Dutch, but it currently shows the English version. This issue might be related to Rank Math's 'Remove category base - Remove prefix from category URL.' The problem can be seen on this page: hidden link.
Symptoms:
The Dutch product category 'sneakers' is showing in English instead of Dutch (there's a Dutch translated category available). When I click on Edit product category, it directs me to the English version. This is affecting SEO negatively.
Questions:
How can I ensure the Dutch product category displays in Dutch instead of English?
Is the issue caused by WPML or Rank Math's permalink settings? How to fix?
I deactivated Rank Math (also without the removing category base from slug) and the problem still occurs. So long story short:
If the category in the secondary language has the same slug as the primary language, the website displays the category in the primary language instead of the secondary one. The secondary language does have a properly translated version, but it is not shown unless we change the slug. However, it is important for us to keep the same slug for consistency.
Caches emptied between different actions...
All plugins deactivated: problem still occurs
Permalinks reset: problems still occurs
Double check translated slugs in settings: problem still occurs