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 @@ -2072,6 +2072,16 @@ with a locale. This can be done by defining a different prefix for each locale
20722072 ;
20732073 };
20742074
2075+ .. note ::
2076+
2077+ If a route being imported includes the special :ref: `_locale <routing-locale-parameter >`
2078+ parameter in its own definition, Symfony will only import it for that locale
2079+ and not for the other configured locale prefixes.
2080+
2081+ E.g. if a route contains ``locale: 'en' `` in its definition and it's being
2082+ imported with ``en `` (prefix: empty) and ``nl `` (prefix: ``/nl ``) locales,
2083+ that route will be available only in ``en `` locale and not in ``nl ``.
2084+
20752085Another common requirement is to host the website on a different domain
20762086according to the locale. This can be done by defining a different host for each
20772087locale.
You can’t perform that action at this time.
0 commit comments