Skip to content

Commit

Permalink
docs: Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 3, 2025
1 parent a6515c7 commit 29472c6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
11 changes: 0 additions & 11 deletions user_guide_src/source/changelogs/v4.5.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ BREAKING
Message Changes
***************

************
Enhancements
************

Negotiator
==========

- Added a feature flag ``Feature::$simpleNegotiateLocale`` fix simple locale comparison.
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``.
Set the value to ``false`` to be able to get ``en-*``

*******
Changes
*******
Expand Down
7 changes: 7 additions & 0 deletions user_guide_src/source/changelogs/v4.6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ Routing

- Now you can specify multiple hostnames when restricting routes.

Negotiator
==========

- Added a feature flag ``Feature::$looseLocaleNegotiation`` fix simple locale comparison.
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``.
Set the value to ``false`` to be able to get ``en-*``

Testing
=======

Expand Down
5 changes: 5 additions & 0 deletions user_guide_src/source/incoming/content_negotiation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ and German you would do something like:
In this example, 'en' would be returned as the current language. If no match is found, it will return the first element
in the ``$supported`` array, so that should always be the preferred language.

.. versionadded:: 4.6.0

Disabling the ``Config\Feature::$looseLocaleNegotiation`` value allows you to strictly search for the requested language from the specified territory (``en-*``).
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.

Encoding
========

Expand Down
7 changes: 2 additions & 5 deletions user_guide_src/source/installation/upgrade_458.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,12 @@ and it is recommended that you merge the updated versions with your application:
Config
------

app/Config/Feature.php
^^^^^^^^^^^^^^^^^^^^^^

- ``Config\Feature::$simpleNegotiateLocale`` has been added.
- @TODO

All Changes
===========

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

- app/Config/Feature.php
- @TODO
3 changes: 2 additions & 1 deletion user_guide_src/source/installation/upgrade_460.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,14 @@ Config

- app/Config/Feature.php
- ``Config\Feature::$autoRoutesImproved`` has been changed to ``true``.
- ``Config\Feature::$looseLocaleNegotiation`` has been added.
- app/Config/Routing.php
- ``Config\Routing::$translateUriToCamelCase`` has been changed to ``true``.

All Changes
===========

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

- app/Config/Feature.php
- @TODO

0 comments on commit 29472c6

Please sign in to comment.