Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Accessibility: Language switcher link needs language declaration for the link text (Español/English) #437

Closed
iamjolly opened this issue Mar 25, 2021 · 1 comment

Comments

@iamjolly
Copy link

Issue:

When content on the page is presented in a language other than the page's language, the different language part must be specified. Per the WCAG 3.1.2 Language of Parts (Level AA) Understanding document,

Both assistive technologies and conventional user agents can render text more accurately if the language of each passage of text is identified. Screen readers can use the pronunciation rules of the language of the text.

Code location:

Recommended fix:

Apply lang="es" or lang="en" to the anchor (<a>) element within the language switcher partial to correctly identify the language of link text. This can be set dynamically from the language information (lang parameter) within config.toml file.

@iamjolly
Copy link
Author

iamjolly commented Apr 1, 2021

This looks to be fixed now @sinchagrenchik. Thank you! 🇺🇸

@iamjolly iamjolly closed this as completed Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant