RatedWithAI

RatedWithAI

Accessibility scanner

WCAG 2.1

3.1.2 Language of Parts

Level AA success criterion

Identify the language of passages or phrases that differ from the page language.

Why it matters

Screen readers need language changes to pronounce words correctly.

Common violations

  • Foreign phrases without lang attributes
  • Localized snippets on English pages
  • Mixed-language product names without markup

Code examples

Bad

<p>Bonjour et bienvenue</p>

Good

<p lang="fr">Bonjour et bienvenue</p>

How to fix

Wrap foreign language phrases in elements with the correct lang attribute.

Related criteria

Related resources

Test & fix this criterion

Use these free tools and guides to check and fix 3.1.2 Language of Parts violations:

Scan your site

Check your WCAG coverage in minutes

Start a free scan