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

**Describe the bug** When localesMapping is set, some of translated urls are incorrect. **To Reproduce** Steps to reproduce the behavior: 1. Setup Laravel and laravel-localization 2. Set localesMapping in config...

If you a group inside the Localize Group ( Nested Group ) and the group prefix is translated the GetLocalizedURL will fail Lets say you have "services/something" If you translate...

Hi, i found some problems with redirection for routes with parameters. When language in my browser/cookie is set to en and then i go directly to translated url with parameters...

Currently, the default locale is set on initialization and cannot be changed. This allows changing the default locale at runtime.

![photo_2022-04-07_23-08-02](https://user-images.githubusercontent.com/25650614/162309586-fcb282af-ce14-4f26-bf2f-c30ac5c61e58.jpg) ![photo_2022-04-07_23-08-05](https://user-images.githubusercontent.com/25650614/162309602-50b5e81a-9b9a-4d44-9a30-db4ba4e9e3e5.jpg) ![photo_2022-04-07_23-08-06](https://user-images.githubusercontent.com/25650614/162309612-db0133b4-e0b0-4acf-90b6-9bc3e6ffc8b8.jpg)

**Describe the bug** The Middleware LocaleCookieRedirect in line 59 use `$params[0]` insed of `$locale`. Variable params are not validate with the funcion `checkLocaleInSupportedLocales()` this cause to store incorrect values inside...

Is there a possibility to fully implement translatable routes for resource controllers that use model binding? Our goal is to display correct slugs and urls in the language switcher on...

This PR resolves #822 It's an issue that occurred since PHP 8 (or 8.1). A minor inconvenience seeing all warning logs for an easy fix.

On PHP 8, we can't pass null to str_replace, it will generate a warning. I'll make a PR to add a null check, which will remove the warning on many...

Hey there, i'm using your package to translate my routes. I figured out that i can even easily translate a resource route by doing ``` Route::resource(LaravelLocalization::transRoute('routes.posts') , 'PostController'); ``` But...