Offline command line translation with TranslateGemma + Ollama

I wrote a simple script that translates text at the command line, completely offline. Here&rsquo;s an example of how it works on my computer: echo '¿Cómo estás?' | translate # => How are you? It combines a few tools: TranslateGemma , a special-purpose language model for translation Ollama , a tool for running language models locally Efficient Language Detector , a library that detects the language…