@luomus/laji-form 15.1.63 → 15.1.64

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.
@@ -883,5 +883,10 @@
883
883
  "fi": "Lisää kenttä",
884
884
  "en": "Add field",
885
885
  "sv": "Lägg till fält"
886
+ },
887
+ "uniqueItems": {
888
+ "fi": "Samaa arvoa ei saa käyttää useammin kuin kerran",
889
+ "en": "The same value may not be used more than once",
890
+ "sv": "Samma värde får inte användas mer än en gång"
886
891
  }
887
892
  }
package/lib/validation.js CHANGED
@@ -56,6 +56,9 @@ function transformErrors(translations, errors) {
56
56
  else if (error.name === "required") {
57
57
  error.message = translations.FieldIsRequired + ".";
58
58
  }
59
+ else if (error.name === "uniqueItems") {
60
+ error.message = translations.UniqueItems + ".";
61
+ }
59
62
  return error;
60
63
  });
61
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-form",
3
- "version": "15.1.63",
3
+ "version": "15.1.64",
4
4
  "description": "React module capable of building dynamic forms from Laji form json schemas",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",