mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
tłumaczenie PL/EN (wip, cz.2)
This commit is contained in:
+4
-2
@@ -4,18 +4,20 @@ import { registerSW } from 'virtual:pwa-register';
|
||||
import { createI18n } from 'vue-i18n';
|
||||
|
||||
import App from './App.vue';
|
||||
import { LocaleMessageSchema, locales } from './i18n';
|
||||
import { LocaleMessageSchema, fetchBackendTranslations, locales } from './i18n';
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
const i18n = createI18n<[LocaleMessageSchema], 'en' | 'pl'>({
|
||||
locale: 'pl',
|
||||
locale: 'en',
|
||||
fallbackLocale: 'pl',
|
||||
legacy: false,
|
||||
globalInjection: true,
|
||||
messages: locales,
|
||||
});
|
||||
|
||||
fetchBackendTranslations(i18n);
|
||||
|
||||
registerSW({
|
||||
immediate: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user