Skip to content

Commit

Permalink
Merge pull request #112 from pleunv/master
Browse files Browse the repository at this point in the history
Fix oneOf & notOneOf messages.
  • Loading branch information
jquense committed Aug 10, 2017
2 parents 7683581 + 3ed66c5 commit c9b0bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const customLocale = getLocale()
export let mixed = {
default: '${path} is invalid',
required: '${path} is a required field',
oneOf: '${path} must be one the following values: ${values}',
notOneOf: '${path} must not be one the following values: ${values}',
oneOf: '${path} must be one of the following values: ${values}',
notOneOf: '${path} must not be one of the following values: ${values}',
notType: ({ path, type, value, originalValue }) => {
let isCast = originalValue != null && originalValue !== value
let msg = `${path} must be a \`${type}\` type, ` +
Expand Down

0 comments on commit c9b0bde

Please sign in to comment.