allow_anon_event, comment via mastodon
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import it from '@/locales/it.js'
|
||||
import en from '@/locales/en.js'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
@@ -8,10 +9,10 @@ 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({
|
||||
locale: process.env.locale,
|
||||
fallbackLocale: process.env.locale,
|
||||
locale: store.state.locale,
|
||||
fallbackLocale: 'it',
|
||||
messages: {
|
||||
it
|
||||
it, en
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user