You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hreflang for regional variations in sitemap.xml follows the format of the URL language slug generated by Sphinx, e.g. zh_CN for Chinese (China). This is invalid syntax for hreflang in a sitemap (reference), where a hyphen must be used instead, e.g. zh-CN. Alternatively, it is also valid to define the script of the language instead, e.g. zh-Hans for Simplified Chinese. Some sort of library to perform this conversion, a lookup table or a user-facing option could help fix this.
@saadmk11 the hreflang label from the sitemap uses some incorrect codes. Those incorrect ones (for example, zh_CN) should be replaced for the correct ones (zh-CN). The linked document from the description has more detailed information.
The
hreflang
for regional variations insitemap.xml
follows the format of the URL language slug generated by Sphinx, e.g.zh_CN
for Chinese (China). This is invalid syntax forhreflang
in a sitemap (reference), where a hyphen must be used instead, e.g.zh-CN
. Alternatively, it is also valid to define the script of the language instead, e.g.zh-Hans
for Simplified Chinese. Some sort of library to perform this conversion, a lookup table or a user-facing option could help fix this.Example from: https://docs.dash.org/sitemap.xml
The text was updated successfully, but these errors were encountered: