2FAuth/resources/js/langs/i18n.js

14 lines
303 B
JavaScript
Raw Normal View History

2020-01-15 23:00:06 +01:00
import Vue from 'vue'
import VueInternationalization from 'vue-i18n';
2020-01-18 18:19:37 +01:00
import Locale from './locales';
2020-01-15 23:00:06 +01:00
Vue.use(VueInternationalization);
const lang = document.documentElement.lang.substr(0, 2);
2020-01-15 23:00:06 +01:00
const i18n = new VueInternationalization({
locale: lang,
messages: Locale
});
export default i18n