ajv-i18n
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
@@ -27,12 +27,12 @@ 'use strict'; | ||
case 'const': | ||
out = 'should be equal to constant'; | ||
out = 'sollte der Konstante entsprechen'; | ||
break; | ||
case 'constant': | ||
out = 'should be equal to constant'; | ||
out = 'sollte der Konstante entsprechen'; | ||
break; | ||
case 'contains': | ||
out = 'should contain a valid item'; | ||
out = 'sollte ein valides Element enthalten'; | ||
break; | ||
case 'custom': | ||
out = 'should pass "' + (e.keyword) + '" keyword validation'; | ||
out = 'sollte die Validierung "' + (e.keyword) + '" bestehen'; | ||
break; | ||
@@ -52,3 +52,3 @@ case 'dependencies': | ||
case 'false schema': | ||
out = 'boolean schema is false'; | ||
out = 'boolsches Schema ist falsch'; | ||
break; | ||
@@ -59,6 +59,6 @@ case 'format': | ||
case 'formatExclusiveMaximum': | ||
out = 'formatExclusiveMaximum should be boolean'; | ||
out = 'formatExclusiveMaximum sollte ein boolscher Wert sein'; | ||
break; | ||
case 'formatExclusiveMinimum': | ||
out = 'formatExclusiveMinimum should be boolean'; | ||
out = 'formatExclusiveMinimum sollte ein boolscher Wert sein'; | ||
break; | ||
@@ -68,3 +68,3 @@ case 'formatMaximum': | ||
var cond = e.params.comparison + " " + e.params.limit; | ||
out += 'should be ' + (cond); | ||
out += 'sollte ' + (cond) + ' sein'; | ||
break; | ||
@@ -74,3 +74,3 @@ case 'formatMinimum': | ||
var cond = e.params.comparison + " " + e.params.limit; | ||
out += 'should be ' + (cond); | ||
out += 'sollte ' + (cond) + ' sein'; | ||
break; | ||
@@ -148,15 +148,13 @@ case 'maximum': | ||
var n = e.params.limit; | ||
out += 'should have ' + (e.params.reason) + ' ' + (n) + ' propert'; | ||
if (n == 1) { | ||
out += 'y'; | ||
} else { | ||
out += 'ies'; | ||
out += 'sollte ' + (e.params.reason) + ' ' + (n) + ' Attribut'; | ||
if (n != 1) { | ||
out += 'e'; | ||
} | ||
out += ' matching pattern "' + (e.params.pattern) + '"'; | ||
out += ' nach folgendem Muster haben "' + (e.params.pattern) + '"'; | ||
break; | ||
case 'patternRequired': | ||
out = 'should have property matching pattern "' + (e.params.missingPattern) + '"'; | ||
out = 'sollte ein Attribut nach folgendem Muster haben "' + (e.params.missingPattern) + '"'; | ||
break; | ||
case 'propertyNames': | ||
out = 'property name \'' + (e.params.propertyName) + '\' is invalid'; | ||
out = 'Attributname \'' + (e.params.propertyName) + '\' ist ungültig'; | ||
break; | ||
@@ -167,3 +165,3 @@ case 'required': | ||
case 'switch': | ||
out = 'should pass "switch" keyword validation, case ' + (e.params.caseIndex) + ' fails'; | ||
out = 'sollte der "switch" Validierung entsprechen, der Fall ' + (e.params.caseIndex) + ' schlägt fehl'; | ||
break; | ||
@@ -170,0 +168,0 @@ case 'type': |
{ | ||
"name": "ajv-i18n", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"description": "Internationalised error messages for ajv JSON-Schema validator", | ||
@@ -21,3 +21,3 @@ "main": "localize/index.js", | ||
"test-spec": "mocha spec/*.spec.js -R spec", | ||
"test-cov": "nyc mocha spec/*.spec.js -R spec", | ||
"test-cov": "nyc npm run test-spec", | ||
"test-browser": "npm run bundle-test && scripts/prepare-tests && karma start --single-run --browsers PhantomJS" | ||
@@ -46,3 +46,3 @@ }, | ||
"brfs": "^1.4.3", | ||
"browserify": "^13.0.0", | ||
"browserify": "^14.1.0", | ||
"coveralls": "^2.11.16", | ||
@@ -52,8 +52,8 @@ "dot": "^1.0.3", | ||
"js-beautify": "^1.5.10", | ||
"json-schema-test": "^0.1.4", | ||
"karma": "^0.13.21", | ||
"karma-jasmine": "^0.3.7", | ||
"karma-mocha": "^0.2.2", | ||
"json-schema-test": "^1.3.0", | ||
"karma": "^1.5.0", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-phantomjs-launcher": "^1.0.0", | ||
"mocha": "^2.3.2", | ||
"mocha": "^3.2.0", | ||
"nyc": "^10.1.2", | ||
@@ -60,0 +60,0 @@ "phantomjs-prebuilt": "^2.1.4", |
@@ -15,3 +15,3 @@ # ajv-i18n | ||
|🇨🇿 cz|Czech |[kiskovacs](https://github.com/kiskovacs)|✓|✓|-| | ||
|🇩🇪 de|German |[jmtoball](https://github.com/jmtoball)|✓|-|-| | ||
|🇩🇪 de|German |[jmtoball](https://github.com/jmtoball)|✓|✓|✓| | ||
|🇪🇸 es|Spanish |[jpablom](https://github.com/jpablom)|✓|✓|-| | ||
@@ -30,3 +30,3 @@ |🇫🇷 fr|French |[monlouisj](https://github.com/monlouisj)|✓|✓|-| | ||
Please contribute locales that you need to use if they are missing. | ||
Please contribute locales that you need to use if they are missing or incomplete. | ||
@@ -105,14 +105,14 @@ | ||
## Contributors | ||
## Contributors of locales | ||
[![danielzurawski](https://avatars3.githubusercontent.com/u/1625711?v=3&s=40)](https://github.com/danielzurawski) | ||
[![szilveszter9](https://avatars0.githubusercontent.com/u/7540866?v=3&s=40)](https://github.com/szilveszter9) | ||
[![jmtoball](https://avatars0.githubusercontent.com/u/219950?v=3&s=40)](https://github.com/jmtoball) | ||
[![gilgongo](https://avatars2.githubusercontent.com/u/4561747?v=3&s=40)](https://github.com/gilgongo) | ||
[![jasoniangreen](https://avatars3.githubusercontent.com/u/3481367?v=3&s=40)](https://github.com/jasoniangreen) | ||
[![jpablom](https://avatars0.githubusercontent.com/u/3935083?v=3&s=40)](https://github.com/jpablom) | ||
[![limmen](https://avatars2.githubusercontent.com/u/8254791?v=3&s=40)](https://github.com/Limmen) | ||
[![jinzhubaofu](https://avatars2.githubusercontent.com/u/811195?v=3&s=40)](https://github.com/jinzhubaofu) | ||
[![kiskovacs](https://avatars1.githubusercontent.com/u/2733311?v=3&s=40)](https://github.com/kiskovacs) | ||
[![monlouisj](https://avatars0.githubusercontent.com/u/5998380?v=3&s=40)](https://github.com/monlouisj) | ||
[![danielzurawski](https://avatars3.githubusercontent.com/u/1625711?v=3&s=40)](https://github.com/danielzurawski "danielzurawski") | ||
[![szilveszter9](https://avatars0.githubusercontent.com/u/7540866?v=3&s=40)](https://github.com/szilveszter9 "szilveszter9") | ||
[![jmtoball](https://avatars0.githubusercontent.com/u/219950?v=3&s=40)](https://github.com/jmtoball "jmtoball") | ||
[![gilgongo](https://avatars2.githubusercontent.com/u/4561747?v=3&s=40)](https://github.com/gilgongo "gilgongo") | ||
[![jasoniangreen](https://avatars3.githubusercontent.com/u/3481367?v=3&s=40)](https://github.com/jasoniangreen "jasoniangreen") | ||
[![jpablom](https://avatars0.githubusercontent.com/u/3935083?v=3&s=40)](https://github.com/jpablom "jpablom") | ||
[![limmen](https://avatars2.githubusercontent.com/u/8254791?v=3&s=40)](https://github.com/Limmen "Limmen") | ||
[![jinzhubaofu](https://avatars2.githubusercontent.com/u/811195?v=3&s=40)](https://github.com/jinzhubaofu "jinzhubaofu") | ||
[![kiskovacs](https://avatars1.githubusercontent.com/u/2733311?v=3&s=40)](https://github.com/kiskovacs "kiskovacs") | ||
[![monlouisj](https://avatars0.githubusercontent.com/u/5998380?v=3&s=40)](https://github.com/monlouisj "monlouisj") | ||
@@ -119,0 +119,0 @@ |
80956
2303