Skip to content

Commit

Permalink
Use the navigator language to set the the locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Aug 13, 2024
1 parent f75fc2e commit 589dfd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import App from './app.vue';

const i18n = createI18n({
legacy: false,
locale: navigator.language.split('-')[0],
locale: navigator.language,
fallbackLocale: 'en',
availableLocales: Object.keys(messages),
messages
Expand Down

0 comments on commit 589dfd9

Please sign in to comment.