Added i18n Translation Support

Co-Authored-By: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
Starystars67andTixx committed 2025-12-20 00:28:36 +00:00
1 parent 0d4d34634a
commit 3873388b48
15 files changed
+821 -460

No files matched your search

+22 -2
View File
@@ -1,6 +1,26 @@
import { createApp } from 'vue'
//import { createI18n } from 'vue-i18n'
import { setupI18n } from './i18n'
import App from './App.vue'
import router from './routes'
import './style.css'
createApp(App).use(router).mount('#app')
//const i18n = createI18n({
const i18n = setupI18n({
locale: 'en',
fallbackLocale: 'en',
messages: {
en: await import('./locales/en.json'),
//fr: () => import('./locales/fr.json'),
//es: () => import('./locales/es.json'),
},
})
window.i18n = i18n
window.locale = i18n.global.locale
import router from './routes'
createApp(App)
.use(i18n)
.use(router)
.mount('#app')