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

HTML language does not change with translation #4312

Open
joemull opened this issue Jul 3, 2024 · 0 comments
Open

HTML language does not change with translation #4312

joemull opened this issue Jul 3, 2024 · 0 comments
Labels
bug Something's not working

Comments

@joemull
Copy link
Member

joemull commented Jul 3, 2024

Describe the bug

The HTML lang attribute on Janeway webpages needs to change when the page is rendered in a specific language.

<html class="no-js" lang="en">

This helps browsers and assistive tech know what language the content is in.

Solution

Change this value depending on the value of request.current_language from middleware.

@joemull joemull added the bug Something's not working label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's not working
Projects
None yet
Development

No branches or pull requests

1 participant