cartodb-4.42/lib/assets/javascripts/new-dashboard/i18n/index.js

20 lines
343 B
JavaScript

import Vue from 'vue';
import VueI18n from 'vue-i18n';
import './backbone-i18n';
// Locales
import en from 'new-dashboard/i18n/locales/en';
import cn from 'new-dashboard/i18n/locales/cn';
Vue.use(VueI18n);
// Create VueI18n instance with options
const i18n = new VueI18n({
locale: 'cn',
messages: {
cn
}
});
export default i18n;