DEV Community

Sangrak
Sangrak

Posted on

I was sick of wasting hours on translations, so I made an AI do it for me

Ever spent a whole day copying and pasting strings into Google Translate for your Laravel app? Yeah, me too. It sucked.

So I built Laravel AI Translator. It uses Anthropic's Claude AI to automatically translate your PHP lang files. And it's not just dumb word-for-word translation - it actually understands context, keeps your variables intact, and maintains the right tenses.

I've been using it for a few weeks now, and it's saved me days of mind-numbing work. Thought some of you might find it useful too.

It's open source, so feel free to check it out, use it, break it, whatever. If you've got ideas on how to make it better, I'm all ears.

https://github.com/kargnas/laravel-ai-translator

P.S. If anyone's curious about how I integrated Claude AI or has questions about the implementation, I'm happy to chat about it.

Top comments (0)