Comparing version 1.3.0 to 1.4.0
'use strict'; | ||
module.exports = { | ||
cz: require('./cz'), | ||
de: require('./de'), | ||
en: require('./en'), | ||
es: require('./es'), | ||
hu: require('./hu'), | ||
@@ -11,5 +13,5 @@ it: require('./it'), | ||
ru: require('./ru'), | ||
es: require('./es'), | ||
sk: require('./sk'), | ||
sv: require('./sv'), | ||
zh: require('./zh') | ||
}; |
{ | ||
"name": "ajv-i18n", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Internationalised error messages for ajv JSON-Schema validator", | ||
@@ -5,0 +5,0 @@ "main": "localize/index.js", |
@@ -12,4 +12,6 @@ # ajv-i18n | ||
|------|:-------:|:---------:| | ||
|🇬🇧 en|English || | ||
|🇨🇿 cz|Czech |[kiskovacs](https://github.com/kiskovacs)| | ||
|🇩🇪 de|German |[jmtoball](https://github.com/jmtoball)| | ||
|🇬🇧 en|English || | ||
|🇪🇸 es|Spanish |[jpablom](https://github.com/jpablom)| | ||
|🇭🇺 hu|Hungarian|[szilveszter9](https://github.com/szilveszter9)| | ||
@@ -20,3 +22,3 @@ |🇮🇹 it|Italian |[jasoniangreen](https://github.com/jasoniangreen)| | ||
|🇷🇺 ru|Russian || | ||
|🇪🇸 es|Spanish |[jpablom](https://github.com/jpablom)| | ||
|🇸🇰 sk|Slovak |[kiskovacs](https://github.com/kiskovacs)| | ||
|🇸🇪 sv|Swedish |[limmen](https://github.com/Limmen)| | ||
@@ -57,6 +59,6 @@ |🇨🇳 zh|Chinese |[jinzhubaofu](https://github.com/jinzhubaofu)| | ||
if (!valid) { | ||
// array of error objects with Russian messages | ||
var errors = localize.ru(validate.errors); | ||
// ru for Russian | ||
localize.ru(validate.errors); | ||
// string with all errors and data paths | ||
console.log(ajv.errorsText(errors, { separator: '\n' })); | ||
console.log(ajv.errorsText(validate.errors, { separator: '\n' })); | ||
} | ||
@@ -63,0 +65,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68926
18
1991
101