JSPM

commit-traductor

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q66874F
  • License MIT

Library for translating commits

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (commit-traductor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    commit-traductor

    A tool to translate commit messages to different languages. At the moment, the library only translates from Spanish to English.

    Installation

    You can install commit-traductor using bun, npm, yarn, or pnpm (recommended: bun):

    bun add commit-traductor -D

    Configuration

    Need husky to run the pre-commit hook. Previously, you must have created your repository by running git init.

    bun add husky -D # or npm, yarn, pnpm

    Then, you can set up husky in your project:

    # initialize husky
    npx husky init
    
    # delete the default pre-commit hook
    rm .husky/pre-commit

    Add the pre-commit hook:

    echo 'bunx commit-traductor "$1"' > .husky/commit-msg

    Now, every time you make a commit, the commit message will be translated to English.

    Contribution

    Feel free to open issues or submit pull requests for improvements or bug fixes. Contributions are welcome!