Skip to content

Commit 72a5a36

Browse files
committed
Add note to name translated routes to README
1 parent 32cde6a commit 72a5a36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ Route::localized(function () {
466466
});
467467
```
468468

469+
Note that in order to find a translated version of a route, you will need to give your routes a name.
470+
If you don't name your routes, only the parameters (model route keys) will be translated, not the "hard-coded" slugs.
471+
469472
The above will generate:
470473

471474
- /en/about/us

0 commit comments

Comments
 (0)