da2a0593ca
Fix lint Disable modern mode Fixes UI fixes Fixes Ignore .po~ files Fixes Fix homepage Fixes Fixes Mix format Fix tests Fix tests (yeah…) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
37 lines
918 B
TypeScript
37 lines
918 B
TypeScript
// The Vue build version to load with the `import` command
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
import Vue from 'vue';
|
|
import VueSimpleMarkdown from 'vue-simple-markdown';
|
|
import Buefy from 'buefy';
|
|
import GetTextPlugin from 'vue-gettext';
|
|
import App from '@/App.vue';
|
|
import router from '@/router';
|
|
import { apolloProvider } from './vue-apollo';
|
|
|
|
const translations = require('@/i18n/translations.json');
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
Vue.use(VueSimpleMarkdown);
|
|
Vue.use(Buefy, {
|
|
defaultContainerElement: '#mobilizon',
|
|
});
|
|
|
|
const language = (window.navigator as any).userLanguage || window.navigator.language;
|
|
|
|
Vue.use(GetTextPlugin, {
|
|
translations,
|
|
defaultLanguage: 'en_US',
|
|
});
|
|
|
|
Vue.config.language = language.replace('-', '_');
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
router,
|
|
apolloProvider,
|
|
el: '#app',
|
|
template: '<App/>',
|
|
components: { App },
|
|
});
|