Diligent_UI
Diligent_UI
  • 发布:2022-02-21 17:02
  • 更新:2022-03-07 20:48
  • 阅读:406

uniapp使用国际化

分类:uni-app

以下是new VueI18n里面的配置,VueI18n方法可以打印出来,是存在的,为啥一直报错,哪一个不对呢

{locale: 'zh-CN', messages: {…}}
locale: "zh-CN"
messages:
en: {Main: {…}}
zh-CN: {Main: {…}}

错误:
Uncaught TypeError: Cannot read properties of undefined (reading 'config')
at VueI18n._initVM (chunk-vendors.js:36263:20)
at new VueI18n (chunk-vendors.js:36202:8)
at eval (index.js:22:14)
at Object.../../../myTarget/telecomRecharge/lang/index.js (index.js:1104:1)
at webpack_require (index.js:854:30)
at fn (index.js:151:20)
at eval (main.js:11:1)
at Object.../../../myTarget/telecomRecharge/main.js (index.js:1128:1)
at
webpack_require
(index.js:854:30)
at fn (index.js:151:20)

2022-02-21 17:02 负责人:无 分享
已邀请:
Diligent_UI

Diligent_UI (作者) - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

牛皮,提问这么久,官方都没有人回答吗

该问题目前已经被锁定, 无法添加新回复