We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9785eb5 commit c9676e8Copy full SHA for c9676e8
src/plugins/i18n.ts
@@ -1,11 +1,12 @@
1
import { createI18n } from 'vue-i18n';
2
+import Browser from 'webextension-polyfill';
3
import en from '../_locales/en/messages.json';
4
import ru from '../_locales/ru/messages.json';
5
6
const i18n = createI18n({
7
legacy: false,
- locale: import.meta.env.VITE_I18N_LOCALE || 'en',
8
- fallbackLocale: import.meta.env.VITE_I18N_FALLBACK_LOCALE || 'en',
+ locale: Browser.i18n.getUILanguage(),
9
+ fallbackLocale: 'en',
10
globalInjection: true,
11
messages: {
12
en,
0 commit comments