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
2072
2072
;
2073
2073
};
2074
2074
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
+
2075
2085
Another common requirement is to host the website on a different domain
2076
2086
according to the locale. This can be done by defining a different host for each
2077
2087
locale.
You can’t perform that action at this time.
0 commit comments