lang script mismatch

warning lang-script-mismatch hreflang and language versions

The page declares one language in `` and is written in a script that language does not use: Chinese text under `lang="en"`, Korean under `en-US`. Search engines and screen readers trust `lang`, and so do hreflang checks and the per-language thresholds of this package. Only the main text counts — menus, footers and code samples do not — and the finding needs at least 200 letters, eight in ten of them in the other script, so a bilingual page stays silent. Languages written in two scripts (Serbian, Azerbaijani, Uzbek) are judged only with a script subtag such as `sr-Latn`. A whole site with the wrong `lang` is one template line and is reported once.

What indexgap reports

The finding reads:

warning  lang-script-mismatch  the page declares lang=“…”, and … of the letters in its text are …. Search engines and screen readers trust lang and will read the page as the wrong language

How to fix it

Set <html lang> in the template to the language of the text. On a multilingual site take it from the page's data, not from the shared template.

How it behaves at scale

Collapsed when it fires template-wide. If it appears on 90% or more of the pages — or of one language version — of a site with at least 20 pages, it is a property of the template and is reported once, with the count, instead of once per page.

Finding it

pipx install indexgap
cd your-project
indexgap init
indexgap check

Then indexgap brief turns every finding on this page into a work order in indexgap-briefs/, with the thresholds the result has to satisfy and the command to check it.

Related checks in hreflang and language versions

All checks · hreflang and language versions