loqi translate --model phi4-mini --from it --to en "Ciao mondo"
Obviously, the quality of the translation depends entirely on the model used, but I've noticed that you can get good, if not excellent, results even with a small model (such as Gemma 4 E2B or Phi4-mini).
So there you have it: Loqi is open source, cross-platform (MacOS, GNU/Linux, Windows), written in Go with Bubble Tea for the TUI. It allows the model to translate individual sentences or process entire files (whether plain text, Markdown or JSON).
I used LLMs to help write parts of the code, including self-hostable ones (those that run on AMD GPU with 16 GB of VRAM), but I've tried to set up the project as much as possible, and there's probably a lot more work to be done and some ideas to implement.
I'd be more than happy to accept contributions.