Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[questions/qa-site-conneg] <link rel="alternate" hreflang="lang_code"... > #405

Open
xfq opened this issue Jun 30, 2022 · 4 comments
Open

Comments

@xfq
Copy link
Member

xfq commented Jun 30, 2022

[source] (https://www.w3.org/International/questions/qa-site-conneg) [en]

<link rel="alternate" hreflang="lang_code"... > indicates that the referenced document is a translation according to the HTML spec.

It is also mentioned in https://developers.google.com/search/docs/advanced/crawling/localized-versions

Should we mention it in one of our navigation articles, like Guiding users to translated pages?

@r12a
Copy link
Contributor

r12a commented Jun 30, 2022

Does it have any effect? Particularly, for non-Google search engines?

@r12a
Copy link
Contributor

r12a commented Jul 1, 2022

Note, also, btw, that to implement this we'll probably need to add code to every article page (including all translations), to anchor the location for the markup we'd generate from the template.

@xfq
Copy link
Member Author

xfq commented Jul 4, 2022

Does it have any effect? Particularly, for non-Google search engines?

It helps search engines index and serve the localized version of a web page to users. See the docs below:

@r12a
Copy link
Contributor

r12a commented Jul 4, 2022

Yes, sorry my question was a little too brief. I understand the principle of how it is supposed to work, but i was wondering whether we are able to confirm that it does in fact produce results. And if it does produce results, for how many search engines? (Useful to see that Yandex and Bing may use the information. That makes it seems less of a proprietary hack, but do we know of others.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants