We see that google does not recognize our site as a multilanguage site since the default sitemap configuration is not correct and guess needs an update. Can anyone help? Or know the solution?
Google says the xml file should be like below so google can read it as 2 different pages and show related page for related country.
Localized Versions of your Pages | Google Search Central | Documentation | Google Developers
xmlns:xhtml=“XHTML namespace”>
http://www.example.com/english/
rel=“alternate”
hreflang=“de”
href=“http://www.example.com/deutsch/”
/>
rel=“alternate”
hreflang=“de-ch”
href=“http://www.example.com/schweiz-deutsch/”
/>
rel=“alternate”
hreflang=“en”
href=“http://www.example.com/english/”
/>
http://www.example.com/deutsch/
rel=“alternate”
hreflang=“en”
href=“http://www.example.com/english/”
/>
rel=“alternate”
hreflang=“de-ch”
href=“http://www.example.com/schweiz-deutsch/”
/>
rel=“alternate”
hreflang=“de”
href=“http://www.example.com/deutsch/”
/>
http://www.example.com/schweiz-deutsch/
rel=“alternate”
hreflang=“de”
href=“http://www.example.com/deutsch/”
/>
rel=“alternate”
hreflang=“en”
href=“http://www.example.com/english/”
/>
rel=“alternate”
hreflang=“de-ch”
href=“http://www.example.com/schweiz-deutsch/”
/>
Thanks