Open beshoo opened 1 year ago
I have exactly the same issue
I don't know if this is the best solution but it is working my case. You should add exception something like this:
'urlsIgnored' => ['/api/*'],
config/laravellocalization.php
I already set that.... This plugin is not working.....
On Wed, Mar 29, 2023, 5:17 PM Körmöczy Gergő @.***> wrote:
I don't know if this is the best solution but it is working my case. You should add exception something like this:
'urlsIgnored' => ['/api/*'],
config/laravellocalization.php
— Reply to this email directly, view it on GitHub https://github.com/mcamara/laravel-localization/issues/862#issuecomment-1488826834, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT23KSXQYJLH7AFDYOY3W6RHAXANCNFSM6AAAAAAWABSUKM . You are receiving this because you authored the thread.Message ID: @.***>
Then you should run after of course.
php artisan optimize:clear
php artisan route:trans:clear
add ["Accept": "application/json"] to header of the request
Route::groups
:supportedLocales
,useAcceptLanguageHeader
andhideDefaultLocaleInURL
).My Router api.php
I opened http://127.0.0.1/cv/api/22333 it redirects me to http://127.0.0.1/cv/en/api/22333 with Router not found
I checked https://github.com/mcamara/laravel-localization/issues/382 and https://github.com/mcamara/laravel-localization/issues/482
and I can not make it works!