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,