首页 > 技术文章 > vue-i18n.esm.js?a925:14 [vue-i18n] Value of key '图标管理' is not a string!

youqiancheng 2019-03-27 15:03 原文

 

解决方案:
在项目的index.js文件中修改配置,让在创建 i18n 示例的时候加上参数去掉这些 warning

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

  

问题解决,运行结果如下:

 

推荐阅读