@@ -88,6 +88,8 @@ Add any locales you wish to support to your published `config/localizer.php` fil
88
88
'supported_locales' => ['en', 'nl'];
89
89
```
90
90
91
+ By default, the ` UrlDetector ` will look for these locales in the URL.
92
+
91
93
You can also use one or more custom slugs for a locale:
92
94
93
95
``` php
@@ -121,7 +123,7 @@ By default, the middleware will use the following detectors to check for a suppo
121
123
122
124
Update the ` detectors ` array to choose which detectors to run and in what order.
123
125
124
- > You can create your own detector by implementing the ` \ CodeZero\Localizer\Detectors\Detector` interface
126
+ > You can create your own detector by implementing the ` CodeZero\Localizer\Detectors\Detector ` interface
125
127
> and add a reference to it in the config file. The detectors are resolved from Laravel's IOC container,
126
128
> so you can add any dependencies to your constructor.
127
129
@@ -135,11 +137,11 @@ The first supported locale that is returned by a detector will automatically be
135
137
136
138
Update the ` stores ` array to choose which stores to use.
137
139
138
- > You can create your own store by implementing the ` \ CodeZero\Localizer\Stores\Store` interface
140
+ > You can create your own store by implementing the ` CodeZero\Localizer\Stores\Store ` interface
139
141
> and add a reference to it in the config file. The stores are resolved from Laravel's IOC container,
140
142
> so you can add any dependencies to your constructor.
141
143
142
- ## 🛠️ More Configuration (optional)
144
+ ## 🛠️ More Configuration
143
145
144
146
### ☑️ ` omitted_locale `
145
147
@@ -218,6 +220,7 @@ Default: `60 * 24 * 365` (1 year)
218
220
``` bash
219
221
composer test
220
222
```
223
+
221
224
## ☕️ Credits
222
225
223
226
- [ Ivan Vermeyen] ( https://github.com/ivanvermeyen )
0 commit comments