Laravel Translations makes multilingual Laravel applications simple. Scan, translate, and manage your translations automatically.
composer require backstage/laravel-translations
php artisan vendor:publish --provider="Backstage\Translations\Laravel\TranslationServiceProvider"
php artisan migrate
php artisan translations:languages:add en English
php artisan translations:languages:add es Spanish
php artisan translations:languages:add fr French
# Scan your app for translation strings
php artisan translations:scan
# Translate them automatically
php artisan translations:translate
That's it! Your translations are now managed automatically.
- 🌐 Multiple Providers: Google Translate, DeepL, AI (OpenAI, etc.)
- 🔄 Auto-Scanning: Finds
trans()
,__()
,@lang
in your code - 🏷️ Model Attributes: Translate Eloquent model attributes automatically
- 📊 Language Management: Add, remove, and manage languages easily
- ⚡ Performance: Optional caching and queued operations
- 🎯 Laravel Integration: Works seamlessly with Laravel's translation system
Translate Eloquent model attributes automatically. See the Model Attributes guide for detailed setup and usage.
# Add languages
php artisan translations:languages:add {locale} {label}
# Scan for translations
php artisan translations:scan
# Translate strings
php artisan translations:translate
php artisan translations:translate --code=es
php artisan translations:translate --update
# Sync translations
php artisan translations:sync
Supports Google Translate, DeepL, and AI providers. See the Translation Providers guide for configuration details.
📚 Complete Documentation - Detailed guides and API reference
- Installation & Setup
- Configuration
- Basic Usage
- Model Attributes
- Translation Providers
- Commands Reference
- Advanced Usage
- PHP 8.2+
- Laravel 10.x, 11.x, or 12.x
MIT License. See LICENSE for details.