mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2025-01-31 08:29:08 +01:00
Set locale from browser settings.
This commit is contained in:
parent
7516cd859f
commit
74b513122e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue