webshim icon indicating copy to clipboard operation
webshim copied to clipboard

Move error messages from form-validators.js to a language file

Open dmromanov opened this issue 11 years ago • 2 comments
trafficstars

Currently additional form validation rules (shims/form-validators.js) have error messages hardcoded. It would be great if they could be translated.

dmromanov avatar May 16 '14 15:05 dmromanov

@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 avatar May 20 '14 11:05 aFarkas

@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.

dmromanov avatar May 20 '14 12:05 dmromanov