Set locale from browser settings.

This commit is contained in:
Roger Braun 2017-11-07 15:23:00 +01:00
parent 7516cd859f
commit 74b513122e

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