vue-i18n 国际化_使用静态分析管理vue-i18n本地化

vue-i18n 国际化

vue-i18n提取 (vue-i18n-extract)

vue-i18n-extract is built to work with your Vue.js projects using vue-i18n. When run vue-18n-extract analyses your Vue.js source code for any vue-i18n key usages (ex. $t(''), $tc(''), ...) as well as your language files (ex. de_DE.js, en_EN.json, ...), in order to:

vue-i18n-extract用于与使用vue-i18n的Vue.js项目一起使用。 运行vue-18n-extract时,将分析您的Vue.js源代码中是否有任何vue-i18n键用法(例如$ t(''),$ tc(''),...)以及语言文件(例如。de_DE.js,en_EN.json,...),以便:

  • [x] I18NReport keys that are missing in the language files.

    [x]语言文件中缺少的I18NReport键。

  • [x] I18NReport unused keys in the language files.

    [x] I18NReport语言文件中未使用的键。

:rocket:入门 (:rocket: Getting Started)

Install vue-i18n-extract using Yarn

使用Yarn安装vue-i18n-extract

yarn add --dev vue-i18n-extract

Or NPM

NPM

npm install --save-dev vue-i18n-extract

Note: vue-i18n-extract documentation uses yarn commands, but npm will also work. You can compare yarn and npm commands in the yarn docs, here.

注意: vue-i

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值