File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2110,6 +2110,16 @@ with a locale. This can be done by defining a different prefix for each locale
21102110 ;
21112111 };
21122112
2113+ .. note ::
2114+
2115+ If a route being imported includes the special :ref: `_locale <routing-locale-parameter >`
2116+ parameter in its own definition, Symfony will only import it for that locale
2117+ and not for the other configured locale prefixes.
2118+
2119+ E.g. if a route contains ``locale: 'en' `` in its definition and it's being
2120+ imported with ``en `` (prefix: empty) and ``nl `` (prefix: ``/nl ``) locales,
2121+ that route will be available only in ``en `` locale and not in ``nl ``.
2122+
21132123Another common requirement is to host the website on a different domain
21142124according to the locale. This can be done by defining a different host for each
21152125locale.
You can’t perform that action at this time.
0 commit comments