soluzione-software / laravel-localization
Package info
github.com/soluzione-software/laravel-localization
pkg:composer/soluzione-software/laravel-localization
Requires
- php: ^7.1
- illuminate/http: ^6.0|^7.0|^8.0
- illuminate/routing: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-29 02:27:08 UTC
README
Note the package is currently in beta. During the beta period things can and probably will change. Don't use it in production until a stable version has been released. We appreciate you helping out with testing and reporting any bugs.
The most native Laravel localization package.
Installation & Configuration
composer require soluzione-software/laravel-localization
Edit app/Providers/RouteServiceProvider.php:
<?php namespace App\Providers; // ... use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use SoluzioneSoftware\Localization\Traits\MapsLocalizedRoutes; class RouteServiceProvider extends ServiceProvider { use MapsLocalizedRoutes; // ... public function map() { // ... $this->mapLocalizedWebRoutes($this->namespace); } // ... }
For each locale, create routes/{locale}.web.php routes file.
Move all routes to localize from routes/web.php to routes/{locale}.web.php
publish and edit config:
php artisan vendor:publish --tag=localization-config