GettextTranslator - LLM translator lib to help translate, review and approve your translations with LiveDashboard (also supported with CLI)

Hi,
I want to share a new lib which I’ve started.
The idea(pain) is simple → want to manage my gettext translations automatically, and also have some supervision by the rest of non technical team.

GettextTranslator is a robust translation utility for Elixir projects that leverages advanced AI endpoints to provide high-quality translations. The library seamlessly integrates with Elixir’s Gettext, enabling you to maintain the integrity of your application’s messages while translating them accurately. It supports multiple AI providers, making it adaptable to your preferred translation service.

Changelog: See CHANGELOG.md for detailed changes in each version.

Features

  • Multi-Provider Support: Easily switch between translation endpoints such as Ollama AI and OpenAI.
  • Customizable Configurations: Define your own translation persona, style, and languages to ignore.
  • CLI Integration: Translate Gettext files directly from the command line.
  • Seamless Gettext Integration: Automatically translate files in your Gettext directory.
  • Live Dashboard:
  • Monitor and manage translations through Phoenix LiveDashboard.
  • Detailed view of all translations with filtering and pagination
  • Direct editing of translations in the LiveView
  • Approval workflow for LLM based translations
  • Saving changes back to PO files

Can’t upload images, but you could check them out here:

https://hexdocs.pm/gettext_translator/0.2.0/readme.html

p.s. Hope it helps someone in a daily amazing elixir coding life :smile:

12 Likes

Thank you for sharing your work. Looking forward to taking it for a test drive.