Skip to content
Snippets Groups Projects
Commit 24e414c6 authored by Agate's avatar Agate 💬
Browse files

Fix #1130: Set proper lang attribute on HTML document

parent acedbb6d
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment