We've covered the core string Localization, but there are more aspects that we can translate. For example, routes:
Take a look at the URL bar

In the images, you should see that the routes are translated as well. This is done by the mcamara/laravel-localization package.
This package helps you manage your routes in multiple languages. It also provides a great set of middlewares and helpers to help you with translations - such as detecting the user's language and redirecting them to the correct route, translating routes, etc...
It's a great Package!
Thanks a lot for clarification! I was strugling trying to make this package worked for some time, this article really helped.
using the mcamara/laravellocalisation package I ran into a problem with livewire: calls to livewire/update on a language other than the default language were being sent in 404.
I analysed the code there livewire and saw that what failed was Livewire\Mechanisms\PersistentMiddleware\PersistentMiddleware::getRouteFromRequest($request) linking routes with
failing this request returns 404.
To solve i ended prepending to /livewire/update the current locale so livewire can find its endpoint
This is very helpful! Fixed the error for me on my search component. Many thanks! But in Laravel 11, you need to add this method to the boot method of the
App/Providers/AppServiceProvider.phpfile instead, as there is noApp\Providers\RouteServiceProvider.phpfile anymore.Thank you for the info, i have to migrate from 10 to 11 and your suggestion is really useful :)