Skip to content

Commit

Permalink
Merge pull request #6129 from kenjis/fix-docs-useSupportedLocalesOnly…
Browse files Browse the repository at this point in the history
…-in-changelog

docs: add useSupportedLocalesOnly in changelog
  • Loading branch information
kenjis authored Jun 15, 2022
2 parents c6a1641 + 903f24d commit 2a13d7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions user_guide_src/source/changelogs/v4.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Enhancements

- Added the ``StreamFilterTrait`` to make it easier to work with capturing data from STDOUT and STDERR streams. See :ref:`testing-overview-stream-filters`.
- Added before and after events to ``BaseModel::insertBatch()`` and ``BaseModel::updateBatch()`` methods. See :ref:`model-events-callbacks`.
- Added ``$routes->useSupportedLocalesOnly(true)`` so that the Router returns 404 Not Found if the locale in the URL is not supported in ``Config\App::$supportedLocales``. See :ref:`Localization <localization-in-routes>`

Changes
*******
Expand Down
3 changes: 3 additions & 0 deletions user_guide_src/source/outgoing/localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ the following example, the **en** locale would be used if no match is found:

.. literalinclude:: localization/003.php

.. _localization-in-routes:

In Routes
---------

Expand All @@ -87,6 +89,7 @@ file:

.. literalinclude:: localization/018.php

.. note:: ``useSupportedLocalesOnly()`` can be used since v4.3.0.

Retrieving the Current Locale
=============================
Expand Down

0 comments on commit 2a13d7c

Please sign in to comment.