How to use the vue-i18n.default function in vue-i18n

To help you get started, we’ve selected a few vue-i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sporchia / alttp_vt_randomizer / resources / assets / js / app.js View on Github external
}

require('./bootstrap');

window.Vue = require('vue');
window.Multiselect = require('vue-multiselect');
window.path = require('path');
window.cStore = require('./store/customizer').default;

import VTooltip from 'v-tooltip';
import ToggleButton from 'vue-js-toggle-button';
import VueTimeago from 'vue-timeago';
//import Vuex from 'vuex';
//Vue.use(Vuex);

window.VueInternationalization = require('vue-i18n').default;
window.Locale = require('./vue-i18n-locales.generated').default;
Vue.use(VueInternationalization);

window.i18n = new VueInternationalization({
	locale: document.documentElement.lang,
	fallbackLocale: 'en',
	messages: Locale,
});

Vue.use(VTooltip);
Vue.use(ToggleButton);
Vue.use(VueTimeago, {
  locale: 'en', // Default locale
  locales: {
    'fr': require('date-fns/locale/fr'),
    'de': require('date-fns/locale/de'),

vue-i18n

Internationalization plugin for Vue.js

MIT
Latest version published 2 months ago

Package Health Score

95 / 100
Full package analysis