node-libxml-xsd icon indicating copy to clipboard operation
node-libxml-xsd copied to clipboard

i18n for error messages

Open LeoPapais opened this issue 6 years ago • 1 comments

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

LeoPapais avatar Nov 28 '18 13:11 LeoPapais

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.

albanm avatar Nov 29 '18 09:11 albanm