I'm using parsley.js for client-side validation - so far so good!
I'm using transifex to store messages for localization. I would like to find a way to use something like gettext() in the javascript for message translation instead of the parsley catalogs. What is the correct way to do this? I've tried updating the english (default) messages and it doesn't seem to work. I'm new to Parsleyjs so forgive me if I'm asking an obvious question but I can't figure it out.
This is not working (from parsley.js):
Parsley.addMessages('en', {
defaultMessage: gettext('This field seems to be invalid.'),
...