Open-Source CLI Tool Translates Git Commit Messages Locally Without an API
A Python command-line tool called git-translate-commits allows developers to normalize mixed-language Git commit histories entirely offline, without sending data to external APIs. The tool uses Argos Translate to download language models locally on first use, requiring no API key. Developers can preview proposed changes safely using a --dry-run flag before any commit hashes are permanently altered. The tool is available on PyPI (version 1.0.1) and requires Python 3.10 or newer, along with Git and a package manager such as pipx or uv. Teams are advised to test the tool on a disposable clone and coordinate any history rewrite with all contributors, since changing commit messages also changes their associated hashes.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in