Comparing version 0.0.4 to 0.0.5
@@ -5,4 +5,5 @@ 'use strict'; | ||
en: require('./en'), | ||
ru: require('./ru'), | ||
pl: require('./pl') | ||
hu: require('./hu'), | ||
pl: require('./pl'), | ||
ru: require('./ru') | ||
}; |
@@ -110,3 +110,3 @@ 'use strict'; | ||
case 'not': | ||
out = 'nie powinien pasować do wzoru z sekcji ' + (e.schema); | ||
out = 'nie powinien pasować do wzoru z sekcji "not"'; | ||
break; | ||
@@ -113,0 +113,0 @@ case 'oneOf': |
{ | ||
"name": "ajv-i18n", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Internationalised error messages for ajv JSON-Schema validator", | ||
@@ -37,4 +37,5 @@ "main": "localize/index.js", | ||
"json-schema-test": "^0.1.4", | ||
"mocha": "^2.3.2" | ||
"mocha": "^2.3.2", | ||
"pre-commit": "^1.1.1" | ||
} | ||
} |
# ajv-i18n | ||
Internationalised error messages for [Ajv](https://github.com/epoberezkin/ajv) - currently the fastest JSON-Schema validator | ||
[![npm version](https://badge.fury.io/js/ajv-i18n.svg)](http://badge.fury.io/js/ajv-i18n) | ||
## Supported locales | ||
At the moment these locales are supported: `en` and `ru`. | ||
At the moment these locales are supported: `en`, `hu`, `pl` and `ru`. | ||
@@ -36,3 +38,3 @@ Please contribute those that you need to use. | ||
// string with all errors and data paths | ||
console.log(ajv.errorsText(errors, { separator: '\n' })); | ||
console.log(ajv.errorsText(errors, { separator: '\n' })); | ||
} | ||
@@ -39,0 +41,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
20031
10
500
79
6