Skip to content

Commit

Permalink
Improved README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavkovac committed Aug 25, 2017
1 parent 456a8d9 commit d55c446
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d55c446

Please sign in to comment.