feat(select-widget): add min/max validation (#3171)

This commit is contained in:
Shawn Erquhart
2020-01-30 17:53:46 -08:00
committed by GitHub
parent 67e5fd2aaf
commit fd9e2c89f2
4 changed files with 148 additions and 3 deletions

View File

@ -52,6 +52,10 @@ const en = {
range: '%{fieldLabel} must be between %{minValue} and %{maxValue}.',
min: '%{fieldLabel} must be at least %{minValue}.',
max: '%{fieldLabel} must be %{maxValue} or less.',
rangeCount: '%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).',
rangeCountExact: '%{fieldLabel} must have exactly %{count} item(s).',
minCount: '%{fieldLabel} must be at least %{minCount} item(s).',
maxCount: '%{fieldLabel} must be %{maxCount} or less item(s).',
},
},
editor: {