chore: rename locales file

This commit is contained in:
就眠儀式
2022-02-17 10:24:25 +08:00
parent e81787eb44
commit 229f2da5fe
4 changed files with 3 additions and 3 deletions

13
src/language/index.ts Normal file
View File

@@ -0,0 +1,13 @@
import { createI18n } from "vue-i18n";
import zh_CN from "./locales/zh_CN";
import en_US from "./locales/en_US";
const i18n = createI18n({
locale: "en_US",
messages: {
zh_CN: zh_CN,
en_US: en_US,
},
});
export default i18n;

View File

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

View File

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