nikku/node-xsd-schema-validator

Use english as language for error messages

Closed this issue · 2 comments

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? 🎅

nikku commented

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

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 😄