Skip to content
Snippets Groups Projects
Commit 82ec1c94 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

get default locale from vuex

parent b5c62c9b
No related branches found
No related tags found
No related merge requests found
VUE_APP_I18N_LOCALE=nob
VUE_APP_I18N_FALLBACK_LOCALE=en
......@@ -52,6 +52,7 @@
}
},
mounted: function(){
this._i18n.locale = this.$store.state.currentLocale
document.title = 'Ordbøkene - ' + this.version_label
}
}
......
......@@ -16,8 +16,9 @@ function loadLocaleMessages () {
return messages
}
export default new VueI18n({
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
messages: loadLocaleMessages()
})
......@@ -11,7 +11,6 @@ module.exports = {
pluginOptions: {
i18n: {
locale: 'nob',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment