Skip to content

Commit

Permalink
And the typo in the README as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet authored and Nathan Fallet committed Apr 21, 2022
1 parent 92b9f8e commit 93318ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ Use the following syntax for defining localizations in a JSON file:

### Locale redirection middleware

In case you want to serv different locales on different subfolders, you can use the `LocaleRedirectMiddelware`.
In case you want to serv different locales on different subfolders, you can use the `LocaleRedirectMiddleware`.

Add in `configure.swift`:
```swift
import LingoVapor

// Inside `configure(_ app: Application)`:
app.middleware.use(LocaleRedirectMiddelware())
app.middleware.use(LocaleRedirectMiddleware())
```

Add in `routes.swift`:
Expand Down

0 comments on commit 93318ea

Please sign in to comment.