Comparing version 1.1.0 to 1.1.1
1.1.1 / 2015-09-15 | ||
================== | ||
* fix: it should not translate the `field` key. | ||
1.1.0 / 2015-09-15 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -88,3 +88,3 @@ /** | ||
message: t('%s required', key), | ||
field: t(key), | ||
field: key, | ||
code: t('missing_field') | ||
@@ -107,3 +107,3 @@ }); | ||
code: t('invalid'), | ||
field: t(key) | ||
field: key | ||
}); | ||
@@ -116,3 +116,3 @@ } | ||
e.message = t('%s%s' + e.message, key, dot); | ||
e.field = t('%s%s%s', key, dot, e.field); | ||
e.field = key + dot + e.field; | ||
errors.push(e); | ||
@@ -119,0 +119,0 @@ }); |
{ | ||
"name": "parameter", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A parameter verify tools.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
25147
8