mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-uniapp
synced 2025-08-08 16:32:44 +08:00
18 lines
235 B
TypeScript
18 lines
235 B
TypeScript
![]() |
import { createI18n } from 'vue-i18n'
|
||
|
|
||
|
import en from './en.json'
|
||
|
import zh from './zh.json'
|
||
|
|
||
|
const messages = {
|
||
|
en,
|
||
|
zh,
|
||
|
}
|
||
|
console.log(uni.getLocale())
|
||
|
|
||
|
const i18n = createI18n({
|
||
|
locale: 'zh',
|
||
|
messages,
|
||
|
})
|
||
|
|
||
|
export default i18n
|