Skip to content
Snippets Groups Projects
Commit 74b51312 authored by Roger Braun's avatar Roger Braun
Browse files

Set locale from browser settings.

parent 7516cd85
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,10 @@ const router = new VueRouter({
}
})
const currentLocale = (window.navigator.language || 'en').split('-')[0]
const i18n = new VueI18n({
locale: 'en',
locale: currentLocale,
fallbackLocale: 'en',
messages
})
......
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