mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
Changes:
- Closes #9 - Removed dependency on vue-i18n - Localization Changes
This commit is contained in:
parent
44db54737b
commit
fcc3d455c6
18 changed files with 143 additions and 270 deletions
14
src/main.js
14
src/main.js
|
@ -1,26 +1,12 @@
|
|||
import { createApp } from 'vue';
|
||||
import { createPinia } from 'pinia';
|
||||
import { createI18n } from 'vue-i18n';
|
||||
|
||||
import App from './App.vue';
|
||||
import en from '@/locales/en.json';
|
||||
|
||||
import('bootstrap-icons/font/bootstrap-icons.css');
|
||||
|
||||
const pinia = createPinia(),
|
||||
i18n = createI18n({
|
||||
globalInjection: true,
|
||||
legacy: false,
|
||||
locale: 'en',
|
||||
fallbackLocale: 'en',
|
||||
messages: {
|
||||
en: en,
|
||||
},
|
||||
}),
|
||||
app = createApp(App);
|
||||
|
||||
window.i18n = i18n;
|
||||
|
||||
app.use(i18n);
|
||||
app.use(pinia);
|
||||
app.mount('#app');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue