Skip to content

Conversation

@Enrica-r
Copy link

As described in issue #941 often Livewire update route is broken. Each user is searching for a solution. The localization issue of route livewire/route isn't documented.

Even the solution is easy to implement in App\Providers\AppServiceProvider or an own App\Providers\LivewireServiceProvider, it's not ideal. Laravel-localization should work out of the box with Livewire especially Livewire is part of Laravel start-kit.

I implemented a method in LaravelLocalizationServiceProvider which checks if Livewire is available. If yes, the Livewire update route is extended with LaravelLocalization::setLocale().

Copy link

@shivshringare shivshringare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent good time today debugging this issue on my end with livewire 3 updates on localized urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants