Translate your git history
to any language

LLM coding assistants leave your commit messages in random languages. Fix your entire history in one command — offline, free, and open source.

pip install git-translate-commits (click to copy)

The problem

AI coding assistants write commits in whatever language they want. Your repo becomes a mess of mixed languages.

Before

a3f21c4Adiciona validacao de e-mail no formulario
b7e09d1fix: resolve authentication token bug
c5a82f3Corrige bug de overflow na tabela de precos
d1f43b7feat: add user profile page
e9c21a5Refatora modulo de autenticacao
f2d87e6chore: update dependencies

After

a3f21c4Add email validation to the form
b7e09d1fix: resolve authentication token bug
c5a82f3Fix overflow bug in the pricing table
d1f43b7feat: add user profile page
e9c21a5Refactor authentication module
f2d87e6chore: update dependencies

How it works

Three steps. One command. Your history, cleaned up.

1

Detect

Scans commits across all branches. Detects each message's language. Skips what's already correct.

2

Translate

Translates using an offline neural engine. Preserves Conventional Commits, issue refs, and trailers.

3

Rewrite

Applies translations to git history. Creates a backup branch. Files, authors, and dates stay untouched.

See it in action

Preview first with --dry-run, then translate when ready.

$ git-translate-commits --lang en --dry-run git-translate-commits — Dry Run Target language: English (en) Branches: main, develop Total commits scanned: 847 Already in target language: 612 Neutral/skipped: 42 To be translated: 193 Sample translations: a3f21c4 "Adiciona validacao" → "Add validation" c5a82f3 "Corrige bug de overflow" → "Fix overflow bug" e9c21a5 "Refatora autenticacao" → "Refactor auth" Engine: local (offline, no cost) Run without --dry-run to apply changes.

Features

100% offline

Runs locally with Argos Translate. No data leaves your machine. No API key needed.

Zero cost

The local engine is completely free. No tokens, no credits, no subscriptions.

Free software (GPL-3.0)

Truly free and open source. Your freedom to use, modify, and share is guaranteed.

Optional LLM engine

Need higher quality? Switch to OpenAI, Anthropic, or any compatible provider with one flag.

Preserves everything

Conventional Commits, issue refs, Co-authored-by, Signed-off-by — all kept intact.

Safe by default

Automatic backup branch. Dry-run mode. Confirmation prompt. Nothing is lost.

Quick start

Install and run in under a minute.

# Install
$ pip install git-translate-commits
# Preview what will change
$ git-translate-commits --lang en --dry-run

# Translate all commits on current branch
$ git-translate-commits --lang en

# Translate all branches
$ git-translate-commits --lang en --all-branches