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

remove automatic locale selection

parent 90afa395
No related branches found
No related tags found
No related merge requests found
......@@ -105,17 +105,9 @@ const store = new Vuex.Store({
state.collapseArticles = localStorage.getItem('collapseArticles') || 'auto'
state.noMouse = window.matchMedia('(hover: none)').matches
if (!state.currentLocale) {
let locale = navigator.language.split("-")[0]
if (locale == "nn") state.currentLocale = "nno"
else if (locale == "nb") state.currentLocale = "nob"
}
if (state.currentLocale) {
i18n.locale = state.currentLocale
}
},
setLocale(state, payload) {
Vue.$plausible.trackEvent("set locale", {props: {from: state.currentLocale, to: payload.locale}})
......
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