How to add locale support from laravel-localization? #608
Replies: 3 comments 1 reply
-
|
Duplicated of #425 |
Beta Was this translation helpful? Give feedback.
-
|
Hello, help me to set the default locale , but should not be displayed in the url here is my middleware setLocale public function handle(Request $request, Closure $next) when local == uk when local == pl when local == en in vue and the result should be Please help me to set up ziggy or laravel correctly when 'locale' must be null |
Beta Was this translation helpful? Give feedback.
-
|
the Default parameter values doesnt work, you will need to share the locale with inertia from the mw, then use it with each route, i couldnt find away to tell ziggy to use the locale as a default url prop globally |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use this extension https://github.com/mcamara/laravel-localization, there are middlewares, but they are not displayed in the url
Beta Was this translation helpful? Give feedback.
All reactions