layui/src/locales/index.ts

13 lines
234 B
TypeScript
Raw Normal View History

2022-02-09 09:40:33 +00:00
import { createI18n } from 'vue-i18n'
2022-02-10 01:44:07 +00:00
import zh_CN from "./zh_CN";
import en_US from './en_US';
2022-02-09 09:40:33 +00:00
const i18n = createI18n({
locale: 'en_US', // set locale
messages: {
2022-02-10 01:44:07 +00:00
zh_CN: zh_CN,
en_US: en_US,
2022-02-09 09:40:33 +00:00
},
})
export default i18n