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
2110
2110
;
2111
2111
};
2112
2112
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
+
2113
2123
Another common requirement is to host the website on a different domain
2114
2124
according to the locale. This can be done by defining a different host for each
2115
2125
locale.
You can’t perform that action at this time.
0 commit comments