Dec 23, 2022
0
Level 10
Generate correct url with mcamara / laravel-localization on blog posts
I am using the package mcamara/laravel-localization and I am trying to generate correct urls on blog posts. When I change languages from en to de I get the following
//en
http://localhost/en/post/this-is-a-test
to
//de
http://localhost/de/post/this-is-a-test
the de url should be
http://localhost/artikel/das-ist-ein-test
I am using the language switcher which is in the docs https://github.com/mcamara/laravel-localization#creating-a-language-selector
Maybe someone knows what to do ?
Please or to participate in this conversation.