Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

feat: Use current navigator language or fallback to en-US. Closes #153 #163

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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