Skip to content

Commit 29472c6

Browse files
committed
docs: Update docs
1 parent a6515c7 commit 29472c6

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

user_guide_src/source/changelogs/v4.5.8.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ BREAKING
1818
Message Changes
1919
***************
2020

21-
************
22-
Enhancements
23-
************
24-
25-
Negotiator
26-
==========
27-
28-
- Added a feature flag ``Feature::$simpleNegotiateLocale`` fix simple locale comparison.
29-
Previously, response with language headers ``Accept-language: en-US,en-GB;q=0.9`` returned the first allowed language ``en`` could instead of the exact language ``en-US`` or ``en-GB``.
30-
Set the value to ``false`` to be able to get ``en-*``
31-
3221
*******
3322
Changes
3423
*******

user_guide_src/source/changelogs/v4.6.0.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ Routing
239239

240240
- Now you can specify multiple hostnames when restricting routes.
241241

242+
Negotiator
243+
==========
244+
245+
- Added a feature flag ``Feature::$looseLocaleNegotiation`` fix simple locale comparison.
246+
Previously, response with language headers ``Accept-language: en-US,en-GB;q=0.9`` returned the first allowed language ``en`` could instead of the exact language ``en-US`` or ``en-GB``.
247+
Set the value to ``false`` to be able to get ``en-*``
248+
242249
Testing
243250
=======
244251

user_guide_src/source/incoming/content_negotiation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ and German you would do something like:
102102
In this example, 'en' would be returned as the current language. If no match is found, it will return the first element
103103
in the ``$supported`` array, so that should always be the preferred language.
104104

105+
.. versionadded:: 4.6.0
106+
107+
Disabling the ``Config\Feature::$looseLocaleNegotiation`` value allows you to strictly search for the requested language from the specified territory (``en-*``).
108+
In the case of a non-strict search, the language may be limited only by the country ``en``. Don't forget to create files for the ``en-*`` locale if you need a translation.
109+
105110
Encoding
106111
========
107112

user_guide_src/source/installation/upgrade_458.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,12 @@ and it is recommended that you merge the updated versions with your application:
4444
Config
4545
------
4646

47-
app/Config/Feature.php
48-
^^^^^^^^^^^^^^^^^^^^^^
49-
50-
- ``Config\Feature::$simpleNegotiateLocale`` has been added.
47+
- @TODO
5148

5249
All Changes
5350
===========
5451

5552
This is a list of all files in the **project space** that received changes;
5653
many will be simple comments or formatting that have no effect on the runtime:
5754

58-
- app/Config/Feature.php
55+
- @TODO

user_guide_src/source/installation/upgrade_460.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,14 @@ Config
211211

212212
- app/Config/Feature.php
213213
- ``Config\Feature::$autoRoutesImproved`` has been changed to ``true``.
214+
- ``Config\Feature::$looseLocaleNegotiation`` has been added.
214215
- app/Config/Routing.php
215216
- ``Config\Routing::$translateUriToCamelCase`` has been changed to ``true``.
216-
217217
All Changes
218218
===========
219219

220220
This is a list of all files in the **project space** that received changes;
221221
many will be simple comments or formatting that have no effect on the runtime:
222222

223+
- app/Config/Feature.php
223224
- @TODO

0 commit comments

Comments
 (0)