albanm / node-libxml-xsd

XSD validation for node.js using libxml.
70 stars 28 forks source link

i18n for error messages #33

Open LeoPapais opened 5 years ago

LeoPapais commented 5 years ago

Hi there,

I'm looking for a way to translate error messages created by schema.validate(xml) . Is there some plug&play method to use i18n there?

Thanks in advance

albanm commented 5 years ago

Hello,

Validation errors come from the underlying libxml lib, not from this module which is a simple wrapper.

I don't know if there is a mechanism for what you described. Feel free to investigate and maybe submit a pull request if necessary. I don't actively maintain this module, I only take the time to look at reasonable pull requests.