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:
101
101
];
102
102
```
103
103
104
- ### Configure Detectors
104
+ ### Configure Detectors (optional)
105
105
106
106
By default, the middleware will use the following detectors to check for a supported locale in:
107
107
108
108
1 . A custom route action
109
- 2 . The URL slug
109
+ 2 . The URL (domain or slug)
110
110
3 . A main omitted locale
111
111
4 . The authenticated user model
112
112
5 . The session
113
113
6 . A cookie
114
114
7 . The browser
115
115
8 . The app's default locale
116
116
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 ` .
118
118
This makes sense, because the locale will always be determined by the URL in this scenario.
119
119
120
120
You 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.
126
126
> and add a reference to it in the config file. The detectors are resolved from Laravel's IOC container,
127
127
> so you can add any dependencies to your constructor.
128
128
129
- ### Configure Stores
129
+ ### Configure Stores (optional)
130
130
131
131
The first supported locale that is returned by a detector will automatically be stored in:
132
132
You can’t perform that action at this time.
0 commit comments