File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ needed if you're using AssetMapper):
96
96
$ yarn install --force
97
97
$ yarn watch
98
98
99
- In case your project ` localizes its URLs `_ by adding the special
100
- `` {_locale} `` parameter to the paths of its route definitions,
101
- you need to do the same with the UX Live Components route definition:
99
+ If your project is localized in different languages (either via the ` _locale route parameter `_
100
+ or by ` setting the locale in the request `_) add the `` { _locale} `` attribute to
101
+ the UX Live Components route definition to keep the locale between refreshes :
102
102
103
103
.. code-block :: diff
104
104
@@ -3467,3 +3467,5 @@ bound to Symfony's BC policy for the moment.
3467
3467
.. _`PostMount hook` : https://symfony.com/bundles/ux-twig-component/current/index.html#postmount-hook
3468
3468
.. _`validation groups` : https://symfony.com/doc/current/form/validation_groups.html
3469
3469
.. _morphing library : https://github.com/bigskysoftware/idiomorph
3470
+ .. _`_locale route parameter` : https://symfony.com/doc/current/translation.html#the-locale-and-the-url
3471
+ .. _`setting the locale in the request` : https://symfony.com/doc/current/translation.html#translation-locale
You can’t perform that action at this time.
0 commit comments