Skip to content

Fix language code in html lang global attribute #8698

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

amercader
Copy link
Member

Fixes #8697

Language codes in the <html> global tag must follow RFC 5646 ( also known as BCP 47). Region subtags are separated with a hyphen rather than an underscore which is what we use elsewhere in the code.

This just changes this particular usage as other places like the DataTables view rely on the underscore format returned by h.lang()

Fixes #8697

Language codes in the `<html>` global tag must follow RFC 5646 (
also known as BCP 47). Region subtags are separated with a hyphen rather
than an underscore which is what we use elsewhere in the code.

This just changes this particular usage as other places like the
DataTables view rely on the underscore format returned by `h.lang()`
@henryuzuegbu

This comment was marked as spam.

@amercader amercader mentioned this pull request Apr 28, 2025
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect language format in global lang attribute (en_GB not en-GB)
3 participants