You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the list of languages (i.e. in the main menu), each language item is written in its own language (which is OK). But it is read with the main language of the page or the voice synthesis own parameter if there's no one. Except for this language, the others aren't read with their own prononciation (Português is read Portugue/Portugues/Portuguez and not Portuguesch).
What do you expect to happen instead?
An attribute « lang=".." » with the code of the language:
<a [lang]="{{lang.id}}" *ngFor="let lang of languages" [href]="buildLanguageLink(lang)">{{ lang.label }} (or something like that as I don't know TS)
The text was updated successfully, but these errors were encountered:
rigelk
changed the title
[ a11y ] own language of languages list items is not properly indicated thru attribute lang=".."
own language of languages list items is not properly indicated thru attribute lang=".."
May 25, 2020
What happened?
In the list of languages (i.e. in the main menu), each language item is written in its own language (which is OK). But it is read with the main language of the page or the voice synthesis own parameter if there's no one. Except for this language, the others aren't read with their own prononciation (Português is read Portugue/Portugues/Portuguez and not Portuguesch).
What do you expect to happen instead?
An attribute « lang=".." » with the code of the language:
<a [lang]="{{lang.id}}" *ngFor="let lang of languages" [href]="buildLanguageLink(lang)">{{ lang.label }} (or something like that as I don't know TS)
https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/app/menu/language-chooser.component.html#L13
Steps to reproduce:
use https://ffoodd.github.io/a11y.css/ to diagnose
in any page of PeerTube, open the language menu
use a11y.css « Afficher les langues » in French (« Show languages » in English ?)
no item has is language defined by lang attribute
Additional information
https://developer.paciellogroup.com/blog/2016/06/using-the-html-lang-attribute/
working example:
https://developer.mozilla.org/en-US/docs/Learn/Accessibility
screencaptures:
The text was updated successfully, but these errors were encountered: