- Success Criterion 3.1.2
- Conformance level AA
Language Switcher Link With No Language Tag of Its Own
3.1.2 — Language of Parts
Scenario
Setting
An e-book reader's library page
What’s wrong
Language-switcher links written in their own language ("Deutsch", "日本語") without their own lang attributes.
Example
A tester reviewing an e-book reader's library page finds this: language-switcher links written in their own language ("Deutsch", "日本語") without their own lang attributes.
Why it matters
Screen-reader users hearing mixed-language content with the wrong voice rules. On an e-book reader's library page specifically, they can't tell what language they're reading.
How to test
Inspect language-switcher links (e.g., 'Deutsch', '日本語'): check whether each carries its own lang attribute matching the language it's written in.
How to fix
The passage in another language must carry its own correct lang attribute.
Outcome
Fixed, a visitor to an e-book reader's library page can understand which language they're reading.
Who is affected
Screen-reader users hearing mixed-language content with the wrong voice rules.
Learn more
- Understanding Understanding document (opens in a new tab)
Related scenarios
- No Way to Programmatically Tell Which Language a Passage Uses
- Foreign-Language Quote or Phrase With No Language Attribute
- Mixed-Language Legal or Product Text Left Entirely Unmarked
- Language Attribute Copy-Pasted Onto the Wrong Piece of Text
- Bilingual Layout Where One Column’s Language Goes Unmarked
- User-Generated Content in Another Language Never Tagged