leadpony / justify

Justify is a JSON validator based on JSON Schema Specification and Jakarta JSON Processing API (JSON-P).
Apache License 2.0
96 stars 18 forks source link

Localization support for messages reported as part of callback in the ProblemHandler #39

Closed maheshcamath closed 4 years ago

maheshcamath commented 4 years ago

I want to localize the messages reported as part of the problem handler. Is localization support available in justify ?

leadpony commented 4 years ago

Hello @maheshcamath Thank you for contacting me. All of the messages for reporting the problems are defined in the properties file messages_<locale>.properties in the package org.leadpony.justify.internal . If your application is running under classpath, you can put the localized properties file in the package named as org.leadpony.justify.internal directly in your jar file and Justify will pick it up. Meanwhile, If your application is running under module path, unfortunately there is no way to provide the localized properties file for Justify of the current version. Please see also #34

maheshcamath commented 4 years ago

Thanks a lot.