cms-vue-parse-common-transfer
v1.0.11
Published
Version: 1.0.1
Downloads
5
Readme
Update
Version: 1.0.1
Publish components
Install
npm install cms-vue-parse-common-transfer
Quick Start
import Vue from 'vue'
import commonTransfer from 'cms-vue-parse-common-transfer'
import csvEn from 'cms-vue-parse-common-transfer/src/locale/lang/en'
import csvCn from 'cms-vue-parse-common-transfer/src/locale/lang/zh-CN'
const messages = {
en: {
...csvEn
},
zh: {
...csvCn
}
}
// Create VueI18n instance with options
const i18n = new VueI18n({
locale: 'zh', // set locale
messages, // set locale messages
})
Vue.use(commonTransfer, {
i18n: (key, value) => i18n.t(key, value)
})