1.0.5 • Published 3 years ago

alauda-translation-cleaner-cli v1.0.5

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

translation-cleaner

背景

前端各个项目下有大量的翻译文件,但是随着产品的迭代,会产生废弃的无用翻译,但是手工清理效率极其低下,需要寻找一种自动的清理方法。

安装

$ yarn add global alauda-translation-cleaner-cli

使用

  1. 项目优先 build 后执行
$ translation-clear-cli
  1. 输入 build 文件地址 默认为 dist/static,默认则回车

  2. 输入项目中需要检测的翻译文件名的正则 默认为 /.*?-(zh|en).ts$/g 默认则回车

  3. 输入需要排除的翻译文件名的正则 默认为 /.static.(i18n|zh|en)+.-+.*.ts$/ 默认则回车

  4. 等待执行检索出不需要的翻译的 key 并替换文件,将在 data/notused.json 中生成被清理的翻译文件

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago