2019-04-03 00:25:12 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import VueI18n from 'vue-i18n'
|
2019-05-30 12:04:14 +02:00
|
|
|
import it from '@/locales/it.js'
|
2019-04-03 00:25:12 +02:00
|
|
|
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
|
|
|
|
export default ({ app, store }) => {
|
|
|
|
// Set i18n instance on app
|
|
|
|
// This way we can use it in middleware and pages asyncData/fetch
|
|
|
|
app.i18n = new VueI18n({
|
2019-06-10 01:25:05 +02:00
|
|
|
locale: process.env.locale,
|
|
|
|
fallbackLocale: process.env.locale,
|
2019-04-26 23:14:43 +02:00
|
|
|
messages: {
|
2019-06-07 17:02:33 +02:00
|
|
|
it
|
2019-04-26 23:14:43 +02:00
|
|
|
}
|
2019-04-03 00:25:12 +02:00
|
|
|
})
|
|
|
|
}
|