Understandable · Readable

WCAG 3.1.2 Language of Parts

When a passage is in a different language than the rest of the page, that passage needs its own lang attribute, so assistive technology can switch pronunciation for it.

3.1.2 Level AA Added in WCAG 2.0 1 automated rule

Illustration: a globe icon, with WCAG 3.1.2 and Language of Parts
Table of contents

What WCAG 3.1.2 Requires

When a passage is in a different language than the rest of the page, that passage needs its own lang attribute, so assistive technology can switch pronunciation for it.

How to Test It by Hand

Find any foreign-language phrases or quotes and check whether they are wrapped in an element with the correct lang attribute.

Common Failures

  • A quoted phrase in another language has no lang attribute marking the change.

Testing WCAG 3.1.2 With AccessBell

AccessBell's scanner runs axe-core, which includes 1 rule that catch code-level failures of this criterion. Automated checks help you spot issues quickly; a person still needs to review what they cannot judge.

This criterion is included in: WCAG 2.2 AA Checker, WCAG 2.1 AA Checker, ADA Compliance Checker, Section 508 Checker, EN 301 549 Checker.

Run a free scan to spot issues on your own pages.

Example Fix

  1. Declare the page language. Add a lang attribute to the html element so screen readers use the right pronunciation.
  2. Mark language changes. Wrap phrases in another language with their own lang attribute.
<!doctype html>
<html lang="en">
  <head>...</head>
  <body>
    <p>Our motto is <span lang="fr">savoir-faire</span>.</p>
  </body>
</html>

Frequently Asked Questions

What does WCAG 3.1.2 require?

When a passage is in a different language than the rest of the page, that passage needs its own lang attribute, so assistive technology can switch pronunciation for it.

Can AccessBell test WCAG 3.1.2 automatically?

Yes. AccessBell runs 1 automated rule that can catch failures of this criterion, including in our WCAG 2.2 AA Checker, WCAG 2.1 AA Checker, ADA Compliance Checker, Section 508 Checker, EN 301 549 Checker. A person still needs to check what automation cannot judge.

What level is WCAG 3.1.2?

Level AA, added in WCAG 2.0. Level AA is the level referenced by the ADA, Section 508 and most accessibility laws.

Sources

This page explains a technical standard and is not legal advice. See our disclaimer.

About the Author

Anton StewartAuthor

Contributor, AccessBell

Anton Stewart writes and reviews accessibility guides for the AccessBell blog, checked against the W3C standards and other primary sources.

Check Your Site Against WCAG 3.1.2

Run a free scan to spot 3.1.2 Language of Parts issues and every other automated WCAG check, then get help fixing them.

Pro is a 3-day free trial, then $29 per domain per month or $199 per year. You add a card at checkout and are not charged until the trial ends. Cancel before then and you will not be charged.

Not ready for a subscription? A Page Report is $19 for one page, and a Domain Audit is $79 for up to 500 pages.