Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property '_t' of undefined" #90

Closed
song7788q opened this issue Jan 22, 2018 · 3 comments
Closed

Cannot read property '_t' of undefined" #90

song7788q opened this issue Jan 22, 2018 · 3 comments

Comments

@song7788q
Copy link

国际化报错

import AtComponents from 'at-ui'
import 'at-ui-style' // 引入组件样式
import VueI18n from 'vue-i18n'
import zhlocale from 'at-ui/dist/locale/zh-CN'

Vue.use(VueI18n)
Vue.use(AtComponents)
const i18n = new VueI18n({
locale: 'zh',
messages: {
'zh': { ...zhlocale }
}
})
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
el: '#app',
i18n,
router,
store,
template: '',
components: {App}
})

@koppthe
Copy link
Member

koppthe commented Jan 22, 2018

可以麻烦用 Code Sandbox 贴一下你的完整代码吗,谢谢~

@song7788q
Copy link
Author

koppthe added a commit that referenced this issue Jan 29, 2018
@koppthe
Copy link
Member

koppthe commented Jan 30, 2018

#90

@koppthe koppthe closed this as completed Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants