Skip to content

Commit

Permalink
Use current navigator language or fallback to en-US.
Browse files Browse the repository at this point in the history
Closes quasarframework#153. Original PR quasarframework#152 by tomers.
Co-authored-by: Tomer Shalev <[email protected]>
  • Loading branch information
MatthewSH committed Aug 23, 2021
1 parent 30e28b3 commit a756e1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/src/boot/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createI18n } from 'vue-i18n'
import messages from 'src/i18n'

const i18n = createI18n({
locale: 'en-US',
locale: navigator.language || 'en-US',
messages
})

Expand Down
2 changes: 1 addition & 1 deletion template/src/boot/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createI18n } from 'vue-i18n';
import messages from 'src/i18n';

const i18n = createI18n({
locale: 'en-US',
locale: navigator.language || 'en-US',
messages,
});

Expand Down

0 comments on commit a756e1d

Please sign in to comment.