https://github.com/eldanielhumberto/commit-traductor
A tool to translate commit messages to different languages.
https://github.com/eldanielhumberto/commit-traductor
bun git husky traductor
Last synced: 7 months ago
JSON representation
A tool to translate commit messages to different languages.
- Host: GitHub
- URL: https://github.com/eldanielhumberto/commit-traductor
- Owner: eldanielhumberto
- Created: 2025-11-01T06:02:10.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-07T05:49:14.000Z (8 months ago)
- Last Synced: 2025-11-07T07:20:25.352Z (8 months ago)
- Topics: bun, git, husky, traductor
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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):
```bash
bun add commit-traductor
```
## Configuration
Need husky to run the pre-commit hook.
```bash
bun add husky -D # or npm, yarn, pnpm
```
Then, you can set up husky in your project:
```bash
# initialize husky
npx husky init
# delete the default pre-commit hook
rm .husky/pre-commit
```
Add the pre-commit hook:
```bash
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!