Accy

Text in another language not marked up

WCAG 3.1.2 (AA) · EN 301 549 9.3.1.2

Some links point at another language (hreflang="{hreflang}") without declaring the language of their own text.

Why it matters

The language switcher is the classic case: the word "Deutsch" inside an English page is read with English phonetics and comes out unintelligible.

How to fix it

Add lang to the element containing text in the other language.

As it is
<a href="/de" hreflang="de">Deutsch</a>
As it should be
<a href="/de" hreflang="de" lang="de">Deutsch</a>

Does your shop have this failure?

Check for free, along with the other 54 rules. No sign-up.

No sign-up. We scan one public page and store nothing about you.