UI: A11y: Use the lang= attribute to help screen-readers recognize localized aria attributes #1860
Labels
component: UI
The issue involves the Shaka Player UI
priority: P3
Useful but not urgent
type: enhancement
New feature or request
Milestone
Have you read the FAQ and checked for duplicate open issues?
Yes
Is your feature request related to a problem? Please describe.
It is not clear that our translated aria attributes will be correctly read by screen readers.
Describe the solution you'd like
First, we should test this using the localized UI and a screen-reader that understands a language other than English. For example, I find that this W3 page about
lang
attributes (appropriately) renders in German for me (based on my browser preferences) and useslang="de"
in the HTML.If a screen-reader can correctly pronounce a non-English version of this page, then we know how things should work.
Second, we should test our demo page with a non-English UI. If the non-English aria labels are not correctly read, we should try adding
lang=
to the video controls container when the locale changes. Alternately, we could addlang=
to the individual divs and spans to handle the case where some translations are missing. This should work, but hasn't been tested.Describe alternatives you've considered
I don't know of any alternatives to
lang=
.The text was updated successfully, but these errors were encountered: