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