laravel-localization
laravel-localization copied to clipboard
URL is not redirecting to the exact Locale in the specific country
Hi there,
first of all, i really appreciate your effort for making this package and i really like it.
i am having some issue in here which i describe along with code. so i will first add my code.
Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['localizationRedirect', 'localeViewPath' ]], function(){ all the routes of my appllication here });
i have registered the middlewares as well and in above code i have other groups of routes as well when have prefix as well which means it would be nested urls.
i have configured everything according to the instructions. i have configured 3 locales for now.
- french fr
- Italy it
- english en (which is by default)
when i try to access it through from Italy, it is not automatically redirecting to www.example.com/it and i want it in this way, when i access from France then it should show the url www.example.com/fr and if i access it from Italy then it should show www.example.com/it or if in any other language then it should show default locale in url.
Your help will be really appreciated.
thank you