Set locale from browser settings.

This commit is contained in:
Roger Braun 2017-11-07 15:23:00 +01:00
parent 7516cd859f
commit 74b513122e
1 changed files with 3 additions and 1 deletions

View File

@ -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
})