Fix #1130: Set proper lang attribute on HTML document
This commit is contained in:
parent
acedbb6db4
commit
24e414c6d9
|
@ -0,0 +1 @@
|
|||
Set proper lang attribute on HTML document (#1130)
|
|
@ -369,6 +369,8 @@ export default {
|
|||
immediate: true,
|
||||
handler(newValue) {
|
||||
let self = this
|
||||
let htmlLocale = newValue.toLowerCase().replace('_', '-')
|
||||
document.documentElement.setAttribute('lang', htmlLocale);
|
||||
if (newValue === 'en_US') {
|
||||
self.$language.current = 'noop'
|
||||
self.$language.current = newValue
|
||||
|
|
Loading…
Reference in New Issue