简化项目结构
This commit is contained in:
9
src/locales/en_US.ts
Normal file
9
src/locales/en_US.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export default {
|
||||
input: {
|
||||
hello: "hello world",
|
||||
},
|
||||
page: {
|
||||
prev: "prev",
|
||||
next: "next",
|
||||
},
|
||||
};
|
||||
@@ -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
9
src/locales/zh_CN.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export default {
|
||||
input: {
|
||||
hello: "你好世界",
|
||||
},
|
||||
page: {
|
||||
prev: "上一页",
|
||||
next: "下一页",
|
||||
},
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
export type SelectValueType = string | string[] | number | number[] | null;
|
||||
|
||||
export interface SelectItem {
|
||||
value?: SelectValueType;
|
||||
label?: null | string | string[];
|
||||
|
||||
@@ -13,18 +13,5 @@ export function S4() {
|
||||
* @param null 无参
|
||||
* */
|
||||
export function guid() {
|
||||
return (
|
||||
S4() +
|
||||
S4() +
|
||||
"-" +
|
||||
S4() +
|
||||
"-" +
|
||||
S4() +
|
||||
"-" +
|
||||
S4() +
|
||||
"-" +
|
||||
S4() +
|
||||
S4() +
|
||||
S4()
|
||||
);
|
||||
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user