项目中使用vue-i18n ,报了一堆这种错 

vue-i18n.esm.js:14 [vue-i18n] Cannot translate the value of keypath 'xxx'. Use the value of keypath as default.

vue 项目使用vue-i18n报错 Cannot translate the value of keypath 'xxx'. Use the value of keypath as default.

可以在创建 i18n 示例的时候加上参数去掉这些 warning

const i18n = new VueI18n({
  locale: lang, // set locale
  messages, // set locale messages
  silentTranslationWarn: true,
})

 

相关文章:

  • 2021-05-29
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-03-03
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2021-08-16
  • 2021-11-05
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案