Hello,
Thank you for your query, and we are so sorry about the trouble this must have caused.
Regrettably, Rank Math is not yet fully compatible with Polylang. We’ve been trying to establish a collaboration with them for a few years.
We even created a pull request in their public repository a few years ago here: https://github.com/polylang/polylang/pull/373.
However, our proposal for compatibility was not accepted, even though Polylang has built compatibility with several other plugins, some of which have a smaller user base than Rank Math.
Consider contacting Polylang and requesting that they add the same compatibility they have for other SEO plugins.
The compatibility addition needs to be made on their side, as they have done for other SEO plugins.
We remain committed to making this happen and updating it, provided their team is willing to collaborate.
Polylang’s response on this matter can be found at: https://wordpress.org/support/topic/after-the-translation-the-page-was-not-included-in-the-xml-sitemap/#post-15950567.
For your information, we are fully compatible with other translation plugins, such as TranslatePress.
TranslatePress has an SEO pack extension with the PRO version and it also automatically adds the translated URLs to Rank Math’s sitemap.
More details about this can be found at: https://rankmath.com/kb/multiple-languages-seo-rankmath-translatepress/
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.