Skip to content

Commit

Permalink
add support from localization based on browser and add es/pt/pt-BR la…
Browse files Browse the repository at this point in the history
…nguages
  • Loading branch information
Marlon Pina Tojal committed Apr 5, 2024
1 parent 9493cab commit 44d3a51
Show file tree
Hide file tree
Showing 4 changed files with 2,701 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function loadLocaleMessages() {
}

const i18n = new VueI18n({
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
locale: navigator.language || navigator.userLanguage,
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
messages: loadLocaleMessages(),
});
Expand Down
Loading

0 comments on commit 44d3a51

Please sign in to comment.