mirror of
https://github.com/pinry/pinry.git
synced 2026-01-17 04:32:06 +01:00
added auto-detection method and a fallbackLocale parameter
This commit is contained in:
@@ -19,7 +19,8 @@ Vue.use(VueI18n);
|
||||
setUpAxiosCsrfConfig();
|
||||
|
||||
const i18n = new VueI18n({
|
||||
locale: 'en',
|
||||
locale: navigator.language.split('-')[0],
|
||||
fallbackLocale: 'en',
|
||||
messages,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user