vue-cli-plugin-i18nhave some plugin options invue.config.js: module.exports={pluginOptions:{i18n:{locale:'ja',fallbackLocale:'en',localeDir:'locales',enableInSFC:false,enableLegacy:false}}} locale Type:string Default in prompt:en The locale of project localization. ...
If yon don't have a project created with Vue CLI: vue create my-vue-app Install the plugin into your project: cdmy-vue-app vue add i18n 🔨 Injected Commands vue-cli-service i18n:report(experimental) Report the missing locale message keys and unused keys. ...
vue-cli-plugin-... 这个是 vue-cli3 出的插件规范。插件做的事情就是把之前一些手动需要配置的代码,自动生成并添加到指定文件中,不需要手动安装依赖,增加配置。可以看看官网介绍 有用 回复 撰写回答 你尚未登录,登录后可以 和开发者交流问题的细节 关注并接收问题和回答的更新提醒 参与内容的编辑和改进,让解决...
node:internal/modules/cjs/loader:936throwerr;^Error: Cannot find module'vue-cli-plugin-i18n'Require stack: