Add Latvian language translation (#992)

Add Latvian language translation (#992)
This commit is contained in:
Lauris BH
2022-06-19 08:31:16 +03:00
committed by GitHub
parent 570aaa4235
commit 2153425230
8 changed files with 237 additions and 8 deletions

View File

@@ -3,8 +3,10 @@
import messages from '@intlify/vite-plugin-vue-i18n/messages';
import { createI18n } from 'vue-i18n';
import { getUserLanguage } from '~/utils/locale';
export const i18n = createI18n({
locale: navigator.language.split('-')[0],
locale: getUserLanguage(),
legacy: false,
globalInjection: true,
fallbackLocale: 'en',