nikku / node-xsd-schema-validator

A schema (XSD) validator for NodeJS
https://www.npmjs.com/package/xsd-schema-validator
MIT License
51 stars 24 forks source link

Use english as language for error messages #6

Closed artworkad closed 8 years ago

artworkad commented 8 years ago

Thanks for this library. It is actually the only xsd validator in node that worked for me. I notice that the error messages are in german language. Would it be possible to make them english? :santa:

nikku commented 8 years ago

I have not seen German error messages, can you give an example? I am happy to include improvements if you provide a PR.

artworkad commented 8 years ago

E.g.:

[Error: invalid xml (status=WITH_ERRORS)
    [error] cvc-enumeration-valid: Wert "false" ist nicht Facet-gültig in Bezug auf Enumeration "[fix, perMinute, perSecond]". Er muss ein Wert aus der Enumeration sein.[error] cvc-attribute.3: Wert "false" des Attributs "allocation" bei Element "prml:parts" hat keinen gültigen Typ "allocationType".result=WITH_ERRORS]
{ valid: false,
  result: 'WITH_ERRORS',
  messages: [ '[error] cvc-enumeration-valid: Wert "false" ist nicht Facet-gültig in Bezug auf Enumeration "[fix, perMinute, perSecond]". Er muss ein Wert aus der Enumeration sein.[error] cvc-attribute.3: Wert "false" des Attributs "allocation" bei Element "prml:parts" hat keinen gültigen Typ "allocationType".result=WITH_ERRORS' ] }

My OSX is german so this may be the reason :smile: