laravel-localization icon indicating copy to clipboard operation
laravel-localization copied to clipboard

Easy localization for Laravel

Results 96 laravel-localization issues
Sort by recently updated
recently updated
newest added

I'm building Sass and each client has the ability to set the supported languages for their customers. I wonder if there is any clear way to override the getSupportedLocale function.

**Is your feature request related to a problem? Please describe.** yes, it is. When choosing to activate 'hideDefaultLocaleInURL' which removes the default locale short name in the URL (ex: /fr...

Hi, this PR adds support for [contextual binding](https://laravel.com/docs/10.x/container#contextual-binding) in Laravel. This comes in handy when you want to inject a different implementation into the `LaravelLocalization` class. A quick example: We...

In cfg: 'urlsIgnored' => ['/', '/en'], But call in tpl ``` @foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties) @endforeach ``` Generated URLs without skip route ``` **** ... ```

**Describe the bug** I am trying to use route localization with dynamic parameters and want to translate dynamic paramaters on listener. Problem is that when I am writing listener it...

- Version of Laravel : 9.X - Version of the Laravel-localization package - Which middleware is used in `Route::groups` : ``` Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath'...

In laravel 10 there is no $routeMiddleware where can i put this /**** OTHER MIDDLEWARE ****/ 'localize' => \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRoutes::class, 'localizationRedirect' => \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRedirectFilter::class, 'localeSessionRedirect' => \Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect::class, 'localeCookieRedirect' => \Mcamara\LaravelLocalization\Middleware\LocaleCookieRedirect::class, 'localeViewPath' =>...

When switching languages the route does not update the translated path in the url: ``` Route::prefix(LaravelLocalization::setLocale()) ->middleware(['localize', 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath']) ->group(function () { Route::prefix(LaravelLocalization::transRoute('exercises.route')) ->group(function () { Route::get('/', ExerciseOverviewController::class)->name('exercises'); Route::get('{exercise}',...

**Is your feature request related to a problem? Please describe.** I need to refactor my laravel app to have dynamic company slug to prefix all the routes. This would serve...

I couldn't find it in config file, can we disable redirects for some requests or 404 requests?