mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 13:45:59 +01:00
16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
|
import Vue from 'vue'
|
||
|
import VueInternationalization from 'vue-i18n';
|
||
|
import Locale from './vue-i18n-locales.generated';
|
||
|
|
||
|
|
||
|
Vue.use(VueInternationalization);
|
||
|
|
||
|
// const lang = document.documentElement.lang.substr(0, 2);
|
||
|
const lang = 'en';
|
||
|
|
||
|
const i18n = new VueInternationalization({
|
||
|
locale: lang,
|
||
|
messages: Locale
|
||
|
});
|
||
|
|
||
|
export default i18n
|