Skip to content

Commit

Permalink
Renamed locale keys less -> lessThan, more -> moreThan
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-graf committed May 30, 2018
1 parent 5014d6a commit 2973d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export let string = {
export let number = {
min: '${path} must be greater than or equal to ${min}',
max: '${path} must be less than or equal to ${max}',
less: '${path} must be less than ${less}',
more: '${path} must be greater than ${more}',
lessThan: '${path} must be less than ${less}',
moreThan: '${path} must be greater than ${more}',
notEqual: '${path} must be not equal to ${notEqual}',
positive: '${path} must be a positive number',
negative: '${path} must be a negative number',
Expand Down
4 changes: 2 additions & 2 deletions src/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ inherits(NumberSchema, MixedSchema, {
});
},

lessThan(less, message = locale.less) {
lessThan(less, message = locale.lessThan) {
return this.test({
message,
name: 'max',
Expand All @@ -67,7 +67,7 @@ inherits(NumberSchema, MixedSchema, {
});
},

moreThan(more, message = locale.more) {
moreThan(more, message = locale.moreThan) {
return this.test({
message,
name: 'min',
Expand Down

0 comments on commit 2973d0a

Please sign in to comment.