@woosmap/ui 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ function validationStrategy(validationName, fieldValidations, val) {
|
|
|
13
13
|
if (validationName === 'maxLength') {
|
|
14
14
|
const maxLength = fieldValidations[validationName];
|
|
15
15
|
if (maxLength > 0 && val && val.length > maxLength) {
|
|
16
|
-
return tr('Should be at most {{count}}
|
|
16
|
+
return tr('Should be at most {{count}} char long', {
|
|
17
17
|
count: maxLength,
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -21,7 +21,7 @@ function validationStrategy(validationName, fieldValidations, val) {
|
|
|
21
21
|
if (validationName === 'minLength') {
|
|
22
22
|
const minLength = fieldValidations[validationName];
|
|
23
23
|
if (minLength > 0 && (!val || val.length < minLength)) {
|
|
24
|
-
return tr('Should be at least {{count}}
|
|
24
|
+
return tr('Should be at least {{count}} char long', {
|
|
25
25
|
count: minLength,
|
|
26
26
|
});
|
|
27
27
|
}
|