Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 887219c

Browse files
lsmith77unknown
authored and
unknown
committed
added docs for CreateBundle rest_force_request_locale config option
1 parent 3fb34e8 commit 887219c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

bundles/create/configuration.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,17 @@ REST handler
219219
~~~~~~~~~~~~
220220

221221
You can configure the REST handler class with the ``rest_controller_class``
222-
option.
222+
option. Furthermore it is possible to enable ``rest_force_request_locale``.
223+
When this option is enabled, the current request locale is set on the model
224+
instance. This is useful in order to automatically translate a model to
225+
the request locale when using inline editing, instead of editing the model
226+
in the locale in which it is currently stored, which might be different
227+
than the request locale due to language fallback.
228+
229+
.. note::
230+
231+
The ``rest_force_request_locale`` option requires that the
232+
:doc:`CoreBundle <../core/introduction>` is enabled.
223233

224234
Editor configuration
225235
~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)