File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,17 @@ should be used during the request. Defining routes this way also eliminated the
210
210
need for duplicate registration of routes which minimizes the risk for any bugs
211
211
caused by definition inconsistency.
212
212
213
+ .. tip ::
214
+
215
+ If you use full locales (language + territory) in your application (e.g. `fr_FR `),
216
+ you can use the language part only in your routes configurations (e.g. `fr `).
217
+
218
+ It also prevents you from repeating yourself when you want to use the same route path
219
+ for several full locales that share the same language (e.g. `fr_FR ` and `fr_BE `).
220
+
221
+ .. versionadded :: 4.2
222
+ The feature to fall back on the language part only was introduced in Symfony 4.2.
223
+
213
224
A common requirement for internationalized applications is to prefix all routes
214
225
with a locale. This can be done by defining a different prefix for each locale
215
226
(and setting an empty prefix for your default locale if you prefer it):
You can’t perform that action at this time.
0 commit comments