cli3+vue-i18n+ElementUI 多语言

 

使用cli3 ui或者命令添加i18n添加完目录如图

cli3+vue-i18n+ElementUI 多语言

locales文件夹下面默认是en.json和cn.json 修改目录为

cli3+vue-i18n+ElementUI 多语言

en.js

cli3+vue-i18n+ElementUI 多语言

cn.js

cli3+vue-i18n+ElementUI 多语言

index.js

cli3+vue-i18n+ElementUI 多语言

i18n.js

cli3+vue-i18n+ElementUI 多语言

切换语言方法

cli3+vue-i18n+ElementUI 多语言

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
相关资源
相似解决方案