Commit 24e414c6 authored by Agate's avatar Agate 💬

Fix #1130: Set proper lang attribute on HTML document

parent acedbb6d
Set proper lang attribute on HTML document (#1130)
\ No newline at end of file
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment