-
Notifications
You must be signed in to change notification settings - Fork 476
Closed
Description
Hi,
In an application, I have the lang attribute set on the <html> tag.
When the user switches the locale, the body is changed with Turbo.
However, the lang attribute is not updated by Turbo, and some of my JavaScript relies on this attribute to use the correct locale.
I know that I could either add an event listener listening to a Turbo event to update the attribute, or trigger a full page refresh instead.
Would it make sense for Turbo to also update the lang attribute by default instead of adding custom logic?
sunny, thanosbellos and sedubois
Metadata
Metadata
Assignees
Labels
No labels