mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
368 B
JavaScript
20 lines
368 B
JavaScript
import Vue from 'vue';
|
|
import VueI18n from 'vue-i18n';
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
import en from './i18n/en.json';
|
|
import pt from './i18n/pt.json';
|
|
let locale = document.querySelector('html').getAttribute('lang');
|
|
|
|
const i18n = new VueI18n({
|
|
locale: locale, // set locale
|
|
fallbackLocale: 'en',
|
|
messages: { en, pt }
|
|
});
|
|
|
|
new Vue({
|
|
el: '#content',
|
|
i18n
|
|
});
|