Skip to content

Commit a33303d

Browse files
committed
minor #239 [LiveComponent][doc] Document how to deal with locales (Lustmored)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [LiveComponent][doc] Document how to deal with locales | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | Fix #231 | License | MIT Locale was lost after any live component action. It turns out that simply by adding `{_locale}` to the route fixes the issue even when no locales are configured (router still seems to inject `en`). Commits ------- 205b882 [LiveComponent][doc] Document how to deal with locales
2 parents f701e13 + 205b882 commit a33303d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Oh, and just one more step! Import a routing file from the bundle:
9999
# config/routes.yaml
100100
live_component:
101101
resource: '@LiveComponentBundle/Resources/config/routing/live_component.xml'
102+
# uncomment to add localization to your components
103+
#prefix: '/{_locale}'
102104
103105
That's it! We're ready!
104106

0 commit comments

Comments
 (0)