checkit icon indicating copy to clipboard operation
checkit copied to clipboard

Custom messages

Open jayceekay opened this issue 10 years ago • 4 comments

I spent about an hour going through the source looking for one of these many ways to set custom messages (:P), but only noticed that you removed setLabels. I'm assuming there's a way to override default messages within the rules object when you instantiate a validator, but wasn't able to find where this is happening or what key it's looking for.

jayceekay avatar Dec 12 '13 03:12 jayceekay

Haha, this is why I haven't cut a 0.2.0 yet... can you give me an example of what you're looking to do and I'll see if it's possible or if I need to add something for it?

tgriesser avatar Dec 12 '13 03:12 tgriesser

I sort of liked having setLabels on a per-validator basis, I thought that was a nice solution?

jayceekay avatar Dec 14 '13 18:12 jayceekay

This is fixed, see:

https://github.com/tgriesser/checkit/blob/3625964e0154f41630bb44b6a9eae417a575bae1/test/spec.js#L299

tristanz avatar Jan 18 '15 07:01 tristanz

@rhys-vdw this is most likely not longer a valid issue. Would recommend closing.

Whoaa512 avatar Jun 13 '16 15:06 Whoaa512