@uform/validator
Advanced tools
Comparing version 0.1.0-beta.12 to 0.1.0-beta.13
@@ -48,3 +48,3 @@ "use strict"; | ||
var getMessage = function getMessage(path) { | ||
return (0, _utils.getIn)(LOCALE.messages, getMatchLang(LOCALE.lang) + "." + path); | ||
return (0, _utils.getIn)(LOCALE.messages, getMatchLang(LOCALE.lang) + "." + path) || 'field is not valid,but not found error message.'; | ||
}; | ||
@@ -51,0 +51,0 @@ |
{ | ||
"name": "@uform/validator", | ||
"version": "0.1.0-beta.12", | ||
"version": "0.1.0-beta.13", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "main": "lib", | ||
"dependencies": { | ||
"@uform/utils": "^0.1.0-beta.12" | ||
"@uform/utils": "^0.1.0-beta.13" | ||
}, | ||
@@ -24,3 +24,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "23c8eeac80be0cd67e74926d6f17179fb0a365fa" | ||
"gitHead": "202f4e360864a926d389a9f7ceeeef03ab882fbe" | ||
} |
@@ -36,5 +36,5 @@ import { getIn, each } from './utils' | ||
export const getMessage = path => { | ||
return getIn(LOCALE.messages, `${getMatchLang(LOCALE.lang)}.${path}`) | ||
return getIn(LOCALE.messages, `${getMatchLang(LOCALE.lang)}.${path}`) || 'field is not valid,but not found error message.' | ||
} | ||
setLocale(locales) |
29998
Updated@uform/utils@^0.1.0-beta.13