简化项目结构

This commit is contained in:
就眠儀式
2022-02-10 09:44:07 +08:00
parent 87eec9155c
commit 2c85b6d3ec
22 changed files with 45 additions and 1015 deletions

9
src/locales/en_US.ts Normal file
View File

@@ -0,0 +1,9 @@
export default {
input: {
hello: "hello world",
},
page: {
prev: "prev",
next: "next",
},
};

View File

@@ -1,26 +1,12 @@
import { createI18n } from 'vue-i18n'
import zh_CN from "./zh_CN";
import en_US from './en_US';
const i18n = createI18n({
locale: 'en_US', // set locale
messages: {
zh_CN: {
input: {
hello: '你好世界',
},
page: {
prev: '上一页',
next: '下一页'
}
},
en_US: {
input: {
hello: 'hello world',
},
page: {
prev: 'prev',
next: 'next'
}
},
zh_CN: zh_CN,
en_US: en_US,
},
})

9
src/locales/zh_CN.ts Normal file
View File

@@ -0,0 +1,9 @@
export default {
input: {
hello: "你好世界",
},
page: {
prev: "上一页",
next: "下一页",
},
};