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
[Translator] Handle W3 locale format on document element
According to W3[1] (and RFC1766) the valid format for language codes is
"primary-code"-"subcode", but Symfony expects underscores as separator,
resulting in broken translations.
This changes language codes specified in the correct format for HTML to
the Symfony format when reading the "lang" attribute.
Fixes#2378
[1] https://www.w3.org/TR/html401/struct/dirlang.html#h-8.1.1
0 commit comments