forked from AkkomaGang/akkoma-fe
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({
|
const i18n = new VueI18n({
|
||||||
locale: 'en',
|
locale: currentLocale,
|
||||||
fallbackLocale: 'en',
|
fallbackLocale: 'en',
|
||||||
messages
|
messages
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue