This commit is contained in:
王红彬
2024-09-06 11:14:28 +08:00
commit 19fcb7963a
18 changed files with 1221 additions and 0 deletions

26
src/main.ts Normal file
View File

@@ -0,0 +1,26 @@
import { createApp } from 'vue';
import { createI18n } from 'vue-i18n';
import App from './App.vue';
import './style.css';
const i18n = createI18n({
locale: 'zh',
fallbackLocale: 'en',
messages: {
en: {
message: {
hello: 'hello world',
},
},
zh: {
message: {
hello: '你好 世界',
},
},
},
});
const app = createApp(App);
app.use(i18n);
app.mount('#app');