@@ -22,7 +22,7 @@ Automatically detect and set an app locale that matches your visitor's preferenc
22
22
- PHP >= 7.2.5
23
23
- Laravel >= 7.0
24
24
25
- ## ⬆️ Upgrade
25
+ ## ⬆ Upgrade
26
26
27
27
Upgrading to a new major version?
28
28
Check our [ upgrade guide] ( UPGRADE.md ) for instructions.
@@ -70,7 +70,7 @@ protected $middlewarePriority = [
70
70
If you don't see the ` $middlewarePriority ` array in your kernel file,
71
71
then you can copy it over from the parent class ` Illuminate\Foundation\Http\Kernel ` .
72
72
73
- ## ⚙️ Configure
73
+ ## ⚙ Configure
74
74
75
75
### Publish Configuration File
76
76
@@ -141,9 +141,9 @@ Update the `stores` array to choose which stores to use.
141
141
> and add a reference to it in the config file. The stores are resolved from Laravel's IOC container,
142
142
> so you can add any dependencies to your constructor.
143
143
144
- ## 🛠️ More Configuration
144
+ ## 🛠 More Configuration
145
145
146
- ### ☑️ ` omitted_locale `
146
+ ### ☑ ` omitted_locale `
147
147
148
148
If you don't want your main locale to have a slug, you can set it as the ` omitted_locale ` (not the custom slug).
149
149
@@ -163,20 +163,20 @@ Result:
163
163
164
164
Default: ` null `
165
165
166
- ### ☑️ ` trusted_detectors `
166
+ ### ☑ ` trusted_detectors `
167
167
168
168
Add any detector class name to this array to make it trusted. (do not remove it from the ` detectors ` array)
169
169
When a trusted detector returns a locale, it will be used as the app locale, regardless if it's a supported locale or not.
170
170
171
171
Default: ` [] `
172
172
173
- ### ☑️ ` url_segment `
173
+ ### ☑ ` url_segment `
174
174
175
175
The index of the URL segment that has the locale, when using the ` UrlDetector ` .
176
176
177
177
Default: ` 1 `
178
178
179
- ### ☑️ ` route_action `
179
+ ### ☑ ` route_action `
180
180
181
181
The custom route action that holds the locale, when using the ` RouteActionDetector ` .
182
182
@@ -190,26 +190,26 @@ Route::group(['locale' => 'nl'], function () {
190
190
});
191
191
```
192
192
193
- ### ☑️ ` user_attribute `
193
+ ### ☑ ` user_attribute `
194
194
195
195
The attribute on the user model that holds the locale, when using the ` UserDetector ` .
196
196
If the user model does not have this attribute, this detector check will be skipped.
197
197
198
198
Default: ` locale `
199
199
200
- ### ☑️ ` session_key `
200
+ ### ☑ ` session_key `
201
201
202
202
The session key that holds the locale, when using the ` SessionDetector ` and ` SessionStore ` .
203
203
204
204
Default: ` locale `
205
205
206
- ### ☑️ ` cookie_name `
206
+ ### ☑ ` cookie_name `
207
207
208
208
The name of the cookie that holds the locale, when using the ` CookieDetector ` and ` CookieStore ` .
209
209
210
210
Default: ` locale `
211
211
212
- ### ☑️ ` cookie_minutes `
212
+ ### ☑ ` cookie_minutes `
213
213
214
214
The lifetime of the cookie that holds the locale, when using the ` CookieStore ` .
215
215
@@ -221,7 +221,7 @@ Default: `60 * 24 * 365` (1 year)
221
221
composer test
222
222
```
223
223
224
- ## ☕️ Credits
224
+ ## ☕ Credits
225
225
226
226
- [ Ivan Vermeyen] ( https://github.com/ivanvermeyen )
227
227
- [ All contributors] ( https://github.com/codezero-be/laravel-localizer/contributors )
0 commit comments