laravel-localization
laravel-localization copied to clipboard
Easy localization for Laravel
**Describe the bug** Visit my http://example.org The AppServiceProvider and welcome.blade.php have different result. In AppServiceProvider ``` echo ''.print_r(app()->getLocale(), true).''; echo ''.print_r(app()->currentLocale(), true).''; echo ''.print_r(LaravelLocalization::getCurrentLocaleRegional(), true).''; echo ''.print_r(LaravelLocalization::getCurrentLocale(), true).''; echo ''.print_r(LaravelLocalization::getCurrentLocaleName(),...
Hi there! I updated the documentation a bit for Laravel 11. Also updated the localization part for new Laravel versions. Please, review these changes, maybe we missing something in other...
Hi, Is there any way that when i use `{{ LaravelLocalization::getLocalizedURL('en') }}`, the changing language changes with the params? my sample params: https://127.0.0.1:8000/fa/محصولات?pack=شیشه&category=سیروپ https://127.0.0.1:8000/en/products?pack=glass&category=syrups or any other solution without the...
localization route not working after php artisan route:cache. It's return 404. It's work perfect without route cache. 1. Create route in web.php Route::group( [ 'prefix' => LaravelLocalization::setLocale(), 'middleware' => ['localize']...
**Describe the bug** I'm trying to configure hideDefaultLocaleInURL to true in order to don't display in the url the default language (en). With this configuration if I try to switch...