@@ -249,7 +249,7 @@ to adapt some translations to another instance of your application, or to a spec
249249customer.
250250
251251The structure of a custom language is: ` existing language code ` + ` - ` + ` custom text ` , where
252- ` custom text ` can only contain alphanumeric character and ` - ` .
252+ ` custom text ` can only contain alphanumeric characters and ` - ` .
253253
254254Examples: ` en-microsoft ` or ` fr-BE-custom ` .
255255
@@ -265,22 +265,22 @@ The easiest way to change the current locale is with the `set.locale` Middleware
265265// in routes/web.php
266266
267267// Solution 1: Apply the locale selection to root.
268- // => https://yourdomain.com?locale=fr
268+ // => https://yourdomain.com?locale=fr
269269Route::get('/', function () {
270270 return view('welcome');
271271})->middleware('set.locale');
272272
273273// Solution 2: Apply the locale selection to many routes.
274- // => https://yourdomain.com/...?locale=fr
274+ // => https://yourdomain.com/...?locale=fr
275275Route::middleware('set.locale')->group(function () {
276276 Route::get('/', function () {
277277 return view('welcome');
278278 });
279279});
280280
281281// Solution 3: prefix your routes with the locale and apply it.
282- // => https://yourdomain.com/fr
283- // => https://yourdomain.com/fr/...
282+ // => https://yourdomain.com/fr
283+ // => https://yourdomain.com/fr/...
284284Route::prefix('{locale?}')->middleware('set.locale')->group(function() {
285285 Route::get('/', function () {
286286 return view('welcome');
0 commit comments