Skip to content

Commit 45fc9ad

Browse files
committed
[Doc] Reword the section about the locale in Live Components
1 parent b436585 commit 45fc9ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ needed if you're using AssetMapper):
9696
$ yarn install --force
9797
$ yarn watch
9898
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:
102102

103103
.. code-block:: diff
104104
@@ -3467,3 +3467,5 @@ bound to Symfony's BC policy for the moment.
34673467
.. _`PostMount hook`: https://symfony.com/bundles/ux-twig-component/current/index.html#postmount-hook
34683468
.. _`validation groups`: https://symfony.com/doc/current/form/validation_groups.html
34693469
.. _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

0 commit comments

Comments
 (0)