mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +00:00
improve inheritance with translations i18n.js files
vue-i18n --> chill main i18n ---( )---> app index chill bundle i18n --> app i18n --^
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import { datetimeFormats, messages } from './js/i18n'
|
||||
import { getDataPromise, postDataPromise } from './store'
|
||||
import { _createI18n } from 'ChillMainAssets/vuejs/_js/i18n'
|
||||
import { appMessages } from './js/i18n'
|
||||
import { getDataPromise } from './store'
|
||||
|
||||
import App from './App.vue';
|
||||
|
||||
@@ -10,12 +10,7 @@ getDataPromise.then(store => {
|
||||
//console.log('store in create_store', store);
|
||||
console.log('store accompanyingCourse', store.state.accompanying_course);
|
||||
|
||||
const i18n = createI18n({
|
||||
datetimeFormats,
|
||||
messages,
|
||||
locale: 'fr',
|
||||
fallbackLocale: 'fr'
|
||||
});
|
||||
const i18n = _createI18n(appMessages);
|
||||
|
||||
const app = createApp({
|
||||
template: `<app></app>`,
|
||||
|
Reference in New Issue
Block a user