File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,20 +101,20 @@ Or you can use one or more custom domains for a locale:
101101];
102102```
103103
104- ### Configure Detectors
104+ ### Configure Detectors (optional)
105105
106106By default, the middleware will use the following detectors to check for a supported locale in:
107107
1081081 . A custom route action
109- 2 . The URL slug
109+ 2 . The URL (domain or slug)
1101103 . A main omitted locale
1111114 . The authenticated user model
1121125 . The session
1131136 . A cookie
1141147 . The browser
1151158 . The app's default locale
116116
117- If you set an omitted locale, no additional detectors will run after the ` OmittedLocaleDetector ` .
117+ If you configure an omitted locale, no additional detectors will run after the ` OmittedLocaleDetector ` .
118118This makes sense, because the locale will always be determined by the URL in this scenario.
119119
120120You can configure the route action, session key, cookie name and the attribute on the user model that holds the locale.
@@ -126,7 +126,7 @@ You can also choose which detectors to run and in what order.
126126> and add a reference to it in the config file. The detectors are resolved from Laravel's IOC container,
127127> so you can add any dependencies to your constructor.
128128
129- ### Configure Stores
129+ ### Configure Stores (optional)
130130
131131The first supported locale that is returned by a detector will automatically be stored in:
132132
You can’t perform that action at this time.
0 commit comments