Skip to content

Commit 81b093c

Browse files
committed
[Reference] Add default_locale config description
1 parent 153565e commit 81b093c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

reference/configuration/framework.rst

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Configuration
1919
* `http_method_override`_
2020
* `ide`_
2121
* `test`_
22+
* `default_locale`_
2223
* `trusted_proxies`_
2324
* `form`_
2425
* enabled
@@ -151,6 +152,16 @@ This setting should be present in your ``test`` environment (usually via
151152

152153
.. _reference-framework-trusted-proxies:
153154

155+
default_locale
156+
~~~~~~~~~~~~~~
157+
158+
**type**: ``string`` **default**: ``en``
159+
160+
This locale is used, if no ``_locale`` routing parameter has been set. It becomes
161+
the service container parameter named ``kernel.default_locale``. It is also available
162+
with the :method:`Request::getDefaultLocale <Symfony\\Component\\HttpFoundation\\Request::getDefaultLocale>`
163+
method.
164+
154165
trusted_proxies
155166
~~~~~~~~~~~~~~~
156167

0 commit comments

Comments
 (0)