backstage/laravel-translations
A Laravel translations package
Maintainers
Package info
github.com/backstagephp/laravel-translations
pkg:composer/backstage/laravel-translations
Fund package maintenance!
Requires
- php: ^8.3
- backstage/laravel-ai: v5.0.18
- backstage/laravel-permanent-cache: v5.0.18
- backstage/support: v5.0.18
- deeplcom/deepl-php: >=1.12
- illuminate/contracts: ^10.0||^11.0||^12.0||^13.0
- lorisleiva/laravel-actions: >=2.0
- spatie/fork: ^1.2
- spatie/laravel-package-tools: ^1.16
- stichoza/google-translate-php: ^5.2
Requires (Dev)
- larastan/larastan: ^3.7
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^4.1
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 0d1240d6b10a3559f1bf792c071d30a6052da135
- Mark <mark.woop@backstagephp.com>
- Manoj Hortulanus <manoj.woop@backstagephp.com>
This package is auto-updated.
Last update: 2026-06-29 11:30:16 UTC
README
Laravel Translations
Nice to meet you, we're Vormkracht10
Break Language Barriers, Empower Global Success
👁 license👁 last-commit
👁 Latest Version on Packagist
👁 GitHub Tests Action Status
👁 GitHub Code Style Action Status
👁 Total Downloads
Quick Start
Laravel Translations makes multilingual Laravel applications simple. Scan, translate, and manage your translations automatically.
1. Install
composer require backstage/laravel-translations
php artisan vendor:publish --provider="Backstage\Translations\Laravel\TranslationServiceProvider"
php artisan migrate
2. Add Languages
php artisan translations:languages:add en English php artisan translations:languages:add es Spanish php artisan translations:languages:add fr French
3. Scan & Translate
# 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.
Features
- 🌐 Multiple Providers: Google Translate, DeepL, AI (OpenAI, etc.)
- 🔄 Auto-Scanning: Finds
trans(),__(),@langin 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
Model Translation
Translate Eloquent model attributes automatically. See the Model Attributes guide for detailed setup and usage.
Commands
# 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
Translation Providers
Supports Google Translate, DeepL, and AI providers. See the Translation Providers guide for configuration details.
Documentation
📚 Complete Documentation - Detailed guides and API reference
- Installation & Setup
- Configuration
- Basic Usage
- Model Attributes
- Translation Providers
- Commands Reference
- Advanced Usage
Requirements
- PHP 8.2+
- Laravel 10.x, 11.x, or 12.x
License
MIT License. See LICENSE for details.
