Open LukaszNiziolDWG opened 5 years ago
Hi,
This seems to be an issue with laravel localization package, I would suggest to report it there.
Are you sure you add the localize
midleware and set properly the prefix? I never do this but i think you miss this portion of code
https://github.com/mcamara/laravel-localization#translated-routes
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => [ 'localize' ] // Route translate middleware
],
....
I have a route:
I want to display links in every language:
Unfortunately, the translations are not substituted in place of the prefix.
Result: /realizacje /en/realizacje /fr/realizacje
The expected result: /realizacje /en/realizations /fr/realisations