You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Slug is not translated if transRoute is not used, although those are different features.
To Reproduce
If you do not used transRoute but translated slugs substituteAttributesInRoute($attributes, $route, $locale);
gets never called and therefore the slug doesn't get translated.
If transRoute is used in combination with translated slugs $this->substituteAttributesInRoute($attributes, $route, $locale);
get's called and therefore it's working.
Describe the bug
Slug is not translated if transRoute is not used, although those are different features.
To Reproduce
If you do not used transRoute but translated slugs
substituteAttributesInRoute($attributes, $route, $locale);
gets never called and therefore the slug doesn't get translated.
If transRoute is used in combination with translated slugs
$this->substituteAttributesInRoute($attributes, $route, $locale);
get's called and therefore it's working.
This is the call which handles translated slugs:
https://github.com/mcamara/laravel-localization/blob/master/src/Mcamara/LaravelLocalization/LaravelLocalization.php#L383
The text was updated successfully, but these errors were encountered: