You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
326 B
16 lines
326 B
import { createI18n } from 'vue-i18n'
|
|
import { lStorage } from '@/utils'
|
|
|
|
import messages from './messages'
|
|
|
|
const currentLocale = lStorage.get('locale')
|
|
|
|
const i18n = createI18n({
|
|
legacy: false,
|
|
globalInjection: true,
|
|
locale: currentLocale || 'cn',
|
|
fallbackLocale: 'cn',
|
|
messages: messages,
|
|
})
|
|
|
|
export default i18n
|
|
|