Installation | Usage | Configuration | Updating | Upgrading from v1 | Contributing
Laravel Translations provides a beautiful UI for managing your application's translations. Import, edit, search, and export translations — all from a clean dashboard. No npm or Vite required in your project.
Requirements: PHP 8.3+ and Laravel 11.x or 12.x
composer require outhebox/laravel-translationsRun the install command to publish assets, config, and migrations:
php artisan translations:installRun migrations:
php artisan migrateVisit /translations in your browser.
php artisan translations:importTo overwrite existing translations:
php artisan translations:import --freshExport from the UI or via command:
php artisan translations:exportphp artisan translations:statusPublish the config file:
php artisan vendor:publish --tag=translations-configThis publishes config/translations.php where you can configure the path, middleware, authentication, source language, import/export settings, and more.
After updating the package, re-publish the assets:
php artisan translations:updateYou can automate this in your composer.json:
{
"scripts": {
"post-update-cmd": ["@php artisan translations:update --ansi"]
}
}Looking for AI-powered translations, revision history, and team collaboration? Check out Laravel Translations Pro.
v2 is a full rewrite with a new frontend (React/Inertia), new database structure, and updated namespace. Click to expand upgrade instructions.
- Update the package:
composer require outhebox/laravel-translations:^2.0- Run the upgrade command to migrate your v1 data:
php artisan translations:upgradeThis will detect your v1 tables, migrate languages, groups, keys, and translations to the new structure.
- Clean up old tables (optional):
php artisan translations:upgrade --cleanup- Publish the new assets:
php artisan translations:install- Namespace:
Outhebox\TranslationsUIis nowOuthebox\Translations - Frontend: Vue has been replaced with React (no action needed — assets are pre-compiled)
- Database: New table structure — run the upgrade command above
- Config: New structure — re-publish with
--tag=translations-config
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
