webshim
webshim copied to clipboard
Move error messages from form-validators.js to a language file
trafficstars
Currently additional form validation rules (shims/form-validators.js) have error messages hardcoded. It would be great if they could be translated.
@dmromanov You are aware, that you can control them already? The coumentation for the custom validation has a section "Controlling the errormessages of custom errors".
@aFarkas
Sure. I've just wanted to have these messages translated "out of the box". Just like standard validators (/blob/gh-pages/js-webshim/dev/shims/i18n/formcfg-en.js). It's quite wierd to have a half of the messages displayed in local language and an other half displayed in English.