routes.php #208
Unanswered
aurawindsurfing
asked this question in
Q&A
routes.php
#208
Replies: 2 comments 1 reply
-
What do you mean he's ignoring the translations? If you look in the code, you will see that the route($name, array_merge([
$locale => app()->getLocale(),
], $parameters)); https://github.com/Laravel-Lang/routes/blob/main/helpers/functions.php |
Beta Was this translation helpful? Give feedback.
0 replies
-
My apologies, what I meant was that it was not translating the slug [
"category" => "kategoria/{slug}",
] Would you mind sharing how would you build a language switcher with translatable slugs? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is this package using routes.php for translations of the routes? I get my localizedRoute to work but it totally ignores the routes.php transations.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions