Skip to content

Commit d9dfb55

Browse files
committed
Update README
1 parent f1321b7 commit d9dfb55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

106106
By default, the middleware will use the following detectors to check for a supported locale in:
107107

108108
1. A custom route action
109-
2. The URL slug
109+
2. The URL (domain or slug)
110110
3. A main omitted locale
111111
4. The authenticated user model
112112
5. The session
113113
6. A cookie
114114
7. The browser
115115
8. 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`.
118118
This makes sense, because the locale will always be determined by the URL in this scenario.
119119

120120
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.
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

131131
The first supported locale that is returned by a detector will automatically be stored in:
132132

0 commit comments

Comments
 (0)