tłumaczenie PL/EN (wip, cz.2)

This commit is contained in:
2023-08-22 00:33:51 +02:00
parent 17882e3e6e
commit 80d6f2b85f
12 changed files with 361 additions and 170 deletions
+4 -2
View File
@@ -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,
});