If you've ever worked on a multilingual Laravel application, you already know how painful translation management can get.
Extracting keys, maintaining language files, and translating everything manually becomes repetitive—especially as your project grows.
I ran into this exact problem while working on Laravel apps.
So I started experimenting with automating the entire workflow using AI.
💡 The Idea
What if we could:
- Scan the project for translation keys
- Translate them automatically
- Generate language files
⚙️ What I Built
I created a Laravel package that does exactly this using Google Gemini AI.
It:
- Scans Blade, PHP, and frontend files
- Extracts translation keys
- Translates them using AI
- Generates structured language files automatically
All through a simple Artisan command.
⚡ Key Features
- Interactive CLI (Artisan command)
- AI-powered translations (Gemini)
- Parallel processing (Spatie Fork)
- Dry-run mode & backups for safety
🚀 Why This Matters
Instead of spending hours managing translations, developers can focus on building features.
🔗 Try It
GitHub:
https://github.com/jayeshmepani/laravel-gemini-translator
Would love your feedback or suggestions 🙌
Top comments (0)