DEV Community

Sangrak
Sangrak

Posted on

1

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)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay