Skip to content

Laravel LocalizerLocale-aware routing for Laravel

Auto-detect, auto-redirect, and resolve `route()` per language. Static routes, `route:cache` compatible.

Example

php
Route::localize(function () {
    Route::get('/about', AboutController::class)->name('about');
});

route('about') returns /about (default locale), /de/about, /fr/about based on the current locale.

Successor to mcamara/laravel-localization

Rebuilt on static routes: route:cache works out of the box, translated routes resolve through Laravel's own URL generator.

Migrating? See the step-by-step migration guide.

Released under the MIT License.