Background of the issue:
I am trying to correct the URLs in the product sitemap for the foreign URL. It is pulling untranslated slugs from the original language. The issue can be seen at: hidden link.
Symptoms:
Instead of the expected URL 'hidden link', I got 'hidden link'. The term 'izdelek' is from the original language instead of the translated 'produkt'.
Questions:
How can I ensure the sitemap pulls the correct translated slugs for foreign URLs?
Why is the sitemap using the original language term instead of the translated one?
When using WPML and Rank Math, you must also install and enable our bridge plugin WPML SEO. Please review our guide on working with the Rank Math plugin:
According to the debug information on your site, I can see that this plugin is not active on your site. If this is the case, could you please install and activate it, then regenerate the sitemap and see if it resolves the problem?