Set language via the html lang attribute

This commit is contained in:
Bubka 2020-02-14 11:42:39 +01:00
parent f2c177774e
commit 9c3b77e56a
2 changed files with 2 additions and 3 deletions

View File

@ -4,8 +4,7 @@ import Locale from './locales';
Vue.use(VueInternationalization);
// const lang = document.documentElement.lang.substr(0, 2);
const lang = 'en';
const lang = document.documentElement.lang.substr(0, 2);
const i18n = new VueInternationalization({
locale: lang,

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="has-background-black-ter">
<html class="has-background-black-ter" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">