From 93318ea7d923a83109a900928b24e5363ce7971c Mon Sep 17 00:00:00 2001 From: Nathan Fallet Date: Wed, 20 Apr 2022 23:01:57 +0200 Subject: [PATCH] And the typo in the README as well --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71cfb25..e3ce7c6 100644 --- a/README.md +++ b/README.md @@ -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`: