Level AAUnderstandable
3.1.2

Language of Parts

Mark any phrase that's in a different language, so a screen reader switches to the right pronunciation for it.

In plain English

Your page has a main language (set by 3.1.1). But sometimes a chunk is in another language, a French product description, a Spanish testimonial. A screen reader still tries to read it with the main language’s pronunciation, and it comes out as nonsense. This rule says: wrap those parts with their own lang so the screen reader switches voices for them.

You do not need to mark stray foreign words that are common in English, just real phrases or passages in another language.

Who this is for

  • Screen-reader users, who otherwise hear foreign-language passages mispronounced into gibberish.
  • Multilingual shoppers, who benefit when your site handles languages properly.

How to check and fix it yourself

Find any passage in a language different from your page’s main one and mark it:

<p>Our bestseller, the <span lang="fr">manteau d'hiver</span>, is back in stock.</p>

<blockquote lang="es">Me encanta esta tienda.</blockquote>

Where we can help

Mixed-language content is easy to forget to mark, especially on international or translated stores. We flag foreign-language passages missing their lang attribute. It is a small but real item on the common failures list.

How to meet it

Techniques the W3C accepts as sufficient (summarized). Follow a link for the full method.

Frequently asked questions

What does language of parts require?+

Success Criterion 3.1.2 (Level AA) says that when a passage or phrase on a page is in a different language from the page's main language, that part must be marked with its own lang attribute, so assistive tech can present it correctly. There are exceptions for proper names, technical terms, and words that have become part of the surrounding language.

How is this different from 3.1.1 Language of Page?+

3.1.1 (Level A) sets the language for the whole page. 3.1.2 (Level AA) handles the exceptions: specific parts in another language, which need their own lang marking so they aren't read with the wrong pronunciation.

Do I need to mark every foreign word?+

No. Proper names, technical terms, and borrowed words that are now common in the page's language are exempt. You mark genuine phrases or passages in another language, for example a French product description block on an English page.

Reference

This is a plain-language explainer. The authoritative source is the W3C Web Content Accessibility Guidelines (WCAG) 2.2.

WCAG 2.2 © W3C. Excerpts are paraphrased; see the linked documents for the normative text.

Not sure if your store passes 3.1.2?

A human auditor checks this and every other criterion against your live store, and documents the result.

Book an audit