Fixing Language of Page on Shopify (WCAG 3.1.1)
The page's language must be declared in the markup: <html lang="de">.
Why it matters
A one-line fix, but when it is missing a screen reader pronounces the page with the wrong language's phonetic rules — German product copy read with English pronunciation is close to unintelligible. It bites hardest on multilingual EU storefronts: if the language switcher translates the content but leaves the lang attribute untouched, every translated version is announced wrongly.
Shopify — where to look
Theme code: the html tag in layout/theme.liquid.
What to do
Print the request locale ISO code into the lang attribute rather than hard-coding a language. Shopify's reference theme Dawn does this already, so a missing or wrong lang usually means the tag was edited or the theme is older.
Verification status
Checked by reading the platform’s own source code. Dawn ships <html class="js" lang="{{ request.locale.iso_code }}">.
Source: https://github.com/Shopify/dawn/blob/main/layout/theme.liquid
Reference themes change. If your store runs a different or older theme, confirm the file before editing it.
How to verify the fix
- View source and look at the opening html tag — is lang present?
- Switch to another language with the site's own switcher and check the source again. Did lang change?
- On a multilingual store, check every locale. Usually only the default one is correct.
Other platforms
- Fixing Language of Page on WooCommerce
- Fixing Language of Page on Webflow
- Fixing Language of Page on Wix
- Fixing Language of Page on Squarespace
The full criterion
Read the full explanation of WCAG 3.1.1 Language of Page, or the formal W3C definition.