How To Make Google Search Sitemap Indicate Alternate Language Pages?

Hi all,

I hope this time my question will be clear this time :roll:

For the Google Search addon, how can we make google search sitemap indicate alternate language pages?

According to Google Search support, for multilingual website the xml file should be like:


I want to apply the same. Would you please help us to enhance the sitemap.xml file to include the below details according to URL language?


You should update functions in the following file



Thank you eCom Labs. we understand, we need a working code :grin: