wsadaaaa/translategemma-cli
๐ Translate text locally in 55 languages with TranslateGemma CLI, offering flexible models and easy usage across macOS, Linux, and Windows.
What's novel
๐ Translate text locally in 55 languages with TranslateGemma CLI, offering flexible models and easy usage across macOS, Linux, and Windows.
Code Analysis
8 files read ยท 3 roundsA CLI tool that runs Google's TranslateGemma models locally (via MLX, PyTorch, vLLM, or Ollama backends) to translate text between 55 languages, with an interactive REPL and single-shot modes.
Strengths
Clean multi-backend architecture with good separation of concerns, thorough test coverage of the response-cleaning logic and language detection, and practical error handling with user-friendly troubleshooting messages for model download failures.
Weaknesses
The README is severely misleading (describes downloading executables/zip files when it's a pip package), and the response cleaning logic relies on a fragile hardcoded list of English explanation markers that will break for non-English source languages or model updates.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
7
Contributors
2
Files
27
Active weeks
3
Repository
Language
Python
Stars
2
Forks
0
License
MIT