om/potrans
Laravel package for managing translations with import/export tools and a simple UI/API. Helps keep language files in sync, edit keys/values, detect missing strings, and streamline localization workflows across your app.
xgettext for POT generation and msgfmt for MO compilation.--translator flag), enabling future-proofing for proprietary APIs or post-translation logic (e.g., pluralization rules).potrans google, potrans deepl), avoiding Laravel facade complexity for translation tasks.Adopt if:
Look elsewhere if:
Lang facade (this package targets Gettext, not Laravel’s JSON-based translations).For Executives: "This tool cuts localization costs by 70% by automating machine translations via Google or DeepL APIs, directly in our CI pipeline. For a $500/month DeepL subscription, we can translate 1M words across 20 languages—eliminating manual work and accelerating global launches. It’s a ‘build vs. buy’ win: no SaaS lock-in, and we retain control over translation logic. Pilot it for our next feature release in Spanish/French to measure impact."
For Engineering:
*"potrans is a CLI tool that bridges Gettext (.po files) with Google/DeepL APIs, reducing our translation bottleneck. Key benefits:
composer translate:es script to auto-update .po files post-code changes.--translator for proprietary APIs or post-processing (e.g., pluralization fixes)..env setup for API keys and UTF-8 PO file hygiene. Start with a proof-of-concept for 3 languages in staging."*How can I help you explore Laravel packages today?