Skip to content

Commit ace1963

Browse files
committed
docs: improve description for "Locale Detection"
1 parent 5f31845 commit ace1963

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

user_guide_src/source/outgoing/localization.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ supported language (locale)::
2424
fr/
2525
App.php
2626

27-
.. important:: Locale detection only works for web-based requests that use the IncomingRequest class.
28-
Command-line requests will not have these features.
29-
3027
Configuring the Locale
3128
======================
3229

@@ -52,10 +49,13 @@ directory existed at the **app/Language/en-US** directory then that would be use
5249
Locale Detection
5350
================
5451

55-
There are two methods supported to detect the correct locale during the request. The first is a "set and forget"
56-
method that will automatically perform :doc:`content negotiation </incoming/content_negotiation>` for you to
57-
determine the correct locale to use. The second method allows you to specify a segment in your routes that
58-
will be used to set the locale.
52+
.. important:: Locale detection only works for web-based requests that use the IncomingRequest class.
53+
Command-line requests will not have these features.
54+
55+
There are two methods supported to detect the correct locale during the request.
56+
57+
1. `Content Negotiation`_: The first is a "set and forget" method that will automatically perform :doc:`content negotiation </incoming/content_negotiation>` for you to determine the correct locale to use.
58+
2. `In Routes`_: The second method allows you to specify a segment in your routes that will be used to set the locale.
5959

6060
Should you ever need to set the locale directly, see `Setting the Current Locale`_.
6161

0 commit comments

Comments
 (0)