From 3ed66c5edcfc28347aacc88c622a6ff080936778 Mon Sep 17 00:00:00 2001 From: Pleun Vanderbauwhede Date: Thu, 10 Aug 2017 18:22:19 +0200 Subject: [PATCH] Fix oneOf & notOneOf messages. --- src/locale.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locale.js b/src/locale.js index 5bf17f17b..68ce75c05 100644 --- a/src/locale.js +++ b/src/locale.js @@ -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, ` +