Skip to content

Commit ae09ec7

Browse files
committed
docs(intlayer_with_tanstack): enhance documentation with details on dynamic route parameters and slot usage
1 parent 6b72f6d commit ae09ec7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/docs/en/intlayer_with_tanstack.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ function LayoutComponent() {
157157
}
158158
```
159159

160+
> Here, `{-$locale}` is a dynamic route parameter that gets replaced with the current locale. This notation makes the slot optional, allowing it to work with routing modes such as `'prefix-no-default'` etc.
161+
162+
> Be aware that this slot may cause issues if you use multiple dynamic segments in the same route (e.g., `/{-$locale}/{-$anotherPath}/...`).
163+
> For the `'prefix-all'` mode, you may prefer switching the slot to `$locale` instead.
164+
> For the `'no-prefix'` or `'search-params'` mode, you can remove the slot entirely.
165+
160166
### Step 6: Declare Your Content
161167

162168
Create and manage your content declarations to store translations:

0 commit comments

Comments
 (0)