From d55c4461f09c9e5447e38f46bc9231a93d28406f Mon Sep 17 00:00:00 2001 From: Miroslav Kovac Date: Fri, 25 Aug 2017 21:02:42 +0200 Subject: [PATCH] Improved README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 14bb6c0..a73eba7 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,15 @@ try config.addProvider(LingoProvider.Provider.self) Lingo can be configured in a `lingo.json` file located inside your Vapor `Config` dir: -``` +```json { - "defaultLocale": "en" // A valid locale string like de, en_GB, fr_FR, etc. - "localizationsDir": "Localizations", // This is also the default value if omitted + "defaultLocale": "en", + "localizationsDir": "Localizations" } ``` +> The `localizationsDir` can be omitted in this case, as the _Localizations_ is also the default path. Note that this folder should exist under the _drop.workDir_. + ## Use LingoProvider adds an extension on Droplet for easier access to Lingo, so it can be used simply as: