Skip to content

Commit

Permalink
readme typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Dec 6, 2015
1 parent 6b405d9 commit e563ce8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ I never liked the mongoose/mongo error messages caused by mongoose validation or
{
username: {
type: 'required',
message: 'is required'',
message: 'is required',
value: undefined
},
email: {
Expand Down Expand Up @@ -51,7 +51,7 @@ app.use(i18nMongooseError.handler(function(err, req, res, next) {

## Options

By default, the plugin will prefix the error messages in your locales files with 'error.':
By default, the plugin will prefix the error messages in your locale files with `'error.':

```
"error.required": "is required",
Expand All @@ -70,9 +70,9 @@ var i18nMongooseError = new (require('mongoose-i18n-error'))({

## Custom validators

In your custom mongoose validators your error message should now apply to the key in your locales files.
In your custom mongoose validators your error message should now apply to the key in your locales.

```
```js
var Schema = new mongoose.Schema({
name: {
type: String,
Expand Down

0 comments on commit e563ce8

Please sign in to comment.