Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C2] lang attribute not compliant with WCAG 2.0 #5679

Open
ywarnier opened this issue Jul 19, 2024 · 0 comments
Open

[C2] lang attribute not compliant with WCAG 2.0 #5679

ywarnier opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@ywarnier
Copy link
Member

ywarnier commented Jul 19, 2024

In C2, the lang=en_US (by default) on the homepage is not compliant with WCAG, which requires it to use a "valid 2 letter or 3 letter language code as defined in the ISO 639 specification". See https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes

This is set in src/CoreBundle/Resources/views/Layout/base-layout.html.twig, line 11:

<html lang="{{ app.request.locale }}" class="no-js h-100">

and somewhere in the page_content block for Vue.

One way to do it is to have an alternative for the locale (app.request.locale639 or something like this) and use it here.

@ywarnier ywarnier added this to the 2.0 milestone Jul 19, 2024
@ywarnier ywarnier added the Bug label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants