Hello, I’m having a similar issue using polylang,
I have a website with two languages, default language works pretty well but the links generated on the second language fails duplicating the page slug
Ex.
The sitemap generate links like this
https://www.website.com/es/el-hotel//el-hotel
instead of
https://www.website.com/es/el-hotel/
I’m using the latest version of the plugin.
The permalinks are working well on the entire site but only in the sitemap are generated incorrectly