1.0.7 • Published 3 years ago
rkyo v1.0.7
指定js文件生成上报词
条件列表
- 里面已经有i18next.t('Hello World')这种词
- 文件在i18n.util.config.js的extract.inputs包含文件夹内
使用
rkyo gen [input] [jsonName] [prefix]
替换文件内为i18next.t('prefix-hello-world'), 生成report-jsonName.json, 里面生成内容如下:
{
"prefix-hello-world":"Hello World"
}
git push封装集成
rkyo push
会自动依次运行下面操作
git add .
git commit -m "[emoji] [message]"
git push origin [currentBranch]