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

wip

parent 4f9fadbe
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,6 @@ function loadLocaleMessages () {
export default new VueI18n({
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
fallbackLocale: 'nob',
messages: loadLocaleMessages()
})
......@@ -32,10 +32,11 @@ const store = new Vuex.Store({
state.showSearchToolbar = localStorage.getItem('showSearchToolbar') || false
state.showHGNO = localStorage.getItem('showHGNO') || false
state.showInflectionNo = localStorage.getItem('showInflectionNo') || false
state.currentLocale = localStorage.getItem('currentLocale') || {text:"nob", value: "nob"}
state.currentLocale = localStorage.getItem('currentLocale') || {text:"norsk (bokmål)", value: "nob"}
},
changeLocale(state, locale) {
changeLocale(state, locale, i18n) {
state.currentLocale = locale
i18n.locale = locale
localStorage.setItem("currentLocale", locale);
},
toggle(state, setting) {
......
......@@ -11,7 +11,7 @@ module.exports = {
pluginOptions: {
i18n: {
fallbackLocale: 'en',
fallbackLocale: 'nob',
localeDir: 'locales',
enableInSFC: true,
includeLocales: false,
......
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