When you define texts in Laravel, you either define the key or the string content, and neither option is perfect.
With the first, it’s hard to know what’s actually there, and with the second, you risk messing up your translation keys by changing even a single character.
So, I’ve just published Laratext, a Laravel package to easily manage and automate translations in your Laravel projects.
✅ Use simple helpers like text('key', 'Default value') or Blade directives like @text('key', 'Default')
✅ Auto-scan your codebase and extract translation keys
✅ Automatically translate missing keys using OpenAI or Google Translate
✅ Easily extend it with your own custom translators
Check it out here 👉
github.com/edulazaro/laratext
Back