img alt language

info img-alt-language Titles, descriptions and headings

A Russian, Arabic or Japanese page whose image alts are in English is a template nobody translated. The page's lang tells assistive technology and search engines which language to expect; the alt contradicts it.

What indexgap reports

The finding reads:

info  img-alt-language  the page is lang="…", but its image alts are in another language (…): the alt template looks untranslated

How to fix it

Translate the alt template into the page's language, or build the alt from the row's data in that language.

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 titles, descriptions and headings

All checks · Titles, descriptions and headings