git-commit-translator

1.0.51 • Public • Published

Auto Translate commit message

在git提交时调用谷歌API把提交信息转换成英文, 配置项: project-id 谷歌云的项目ID(使用前先要在环境变量中设置account和项目对应的tockenjson,具体参考google cloud link

eng-first 是否把英文显示在前面

//.huskyrc 配置 husky(https://www.npmjs.com/package/husky)的配置文件
{
  "hooks": {
    "commit-msg": "git-commit-translate --project-id=[your google project id]  --eng-first=[true|false]"
  }
}

提交记录示例:git-commit-translator

/git-commit-translator/

    Package Sidebar

    Install

    npm i git-commit-translator

    Weekly Downloads

    1

    Version

    1.0.51

    License

    ISC

    Unpacked Size

    4.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • sonicscrewdriver