@woosmap/ui 4.0.0 → 4.0.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -3,6 +3,7 @@ import enMessages from '../../locales/en/translation.json';
3
3
  import frMessages from '../../locales/fr/translation.json';
4
4
 
5
5
  i18next.init({
6
+ compatibilityJSON: 'v3',
6
7
  lng: 'en',
7
8
  debug: false,
8
9
  nsSeparator: null,
@@ -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}} chars long', {
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}} chars long', {
24
+ return tr('Should be at least {{count}} char long', {
25
25
  count: minLength,
26
26
  });
27
27
  }