i18n
Rules: 4
i18n/content-language
Content-Language and lang name different languages
i18n/content-language/mismatch · info · score 2.4 · page
The header and the html lang attribute disagree about the page’s language, so browsers, translation tools and search engines may pick the wrong one. Pages lacking either are skipped.
Fix
Make the Content-Language header name the language the html lang attribute declares, or drop the header.
Off by default; a group that runs i18n turns it on.
References
For rule authors
Reads
html.langhttp.headers.content-language
i18n/hreflang-return
A language version does not link back
i18n/hreflang-return/missing · warning · score 5.2 · site
Hreflang works only when versions name each other, so without the return link search engines may ignore the annotation and visitors land on the wrong language. Only crawled pages that answer 2xx are judged.
Fix
List every language version, itself included, in the hreflang links of each version.
Off by default; a group that runs i18n turns it on.
References
For rule authors
Reads
html.hreflangsite.redirects
i18n/hreflang
An hreflang link points at a page that fails or redirects
i18n/hreflang/unreachable · warning · score 5.6 · site
Search engines ignore hreflang targets that answer with an error or a redirect, so that language version is never offered to its readers. Targets answering outside 2xx, or redirecting, are reported.
Fix
Point each hreflang link at the final URL of a page that answers 200.
Off by default; a group that runs i18n turns it on.
References
For rule authors
Reads
html.hreflanghttp.statussite.redirects
i18n/metadata-language
The title or description is in another language than the page declares
i18n/metadata-language/mismatch · info · score 2.8 · page
Screen readers pronounce text by the lang attribute and search engines use it to pick the audience, so a mismatch garbles speech and can show the page to the wrong readers. Judged only when language detection is confident.
Fix
Translate the title and meta description into the language lang declares, or correct lang.
Off by default; a group that runs i18n turns it on.
References
For rule authors
Reads
html.detectedhtml.lang