-
-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested slugs not translatable in language switcher #870
Comments
I have same issue. I did some digging into the source code, and it appears that the issue arises because for some reason, when you add the second dynamic segment the |
Hey @Elkex I got it working as expected. initially I was defining route as such:
After some trial and error i ended up doing the following: define route as such:
Then add these 2 methods to my Manufacturer model:
And you got to implement the `Mcamara\LaravelLocalization\Interfaces\LocalizedUrlRoutable' on your model too. So far didn't found any problems |
Actually @mcamara maybe could you weigh in, is this i a potential bug, or is this expected behavior? I could take a look at either creating pull request for documentation detailing how to make this work, or if it's a bug, I would maybe debug further to get it to work both ways? |
Thanks for asking @vgaldikas , feel free to create a PR and @iwasherefirst2 or I will review it. |
Did you understand the problem? I don't really understand how to solve the same problem.. |
Hello,
This package seems to work perfectly to translate slugs on the first level of the URL, but seems to fail for the second level of a nested URL.
For instance:
/en/teachers translates perfectly in the language switcher to /fr/professeurs
However, if I have a second level page:
/en/teachers/apply does not translate to /fr/professeurs/appliquer, it shows /fr/teachers/apply
I implemented the package accordingly with the Twill CMS, but once the slug is nested, it does not seem to translate correctly.
The text was updated successfully, but these errors were encountered: