When validation erros are resolved for a non-english running environment, let's say for instance German, validation messages will arrive in German even when SchemaValidatorConfig is set to English locale.
Reason:
The jsv-messages.properties is by default english, but there is jsv-messages_en<_US>.properties
How to Reproduce:
Set Globaly the Locale to German (e.g: Locale.setDefault(Locale.GERMAN) to simulate a an environment running with non-english language
Configure the custom locale (e.g.: SchemaValidatorConfig.setLocale(Locale.ENGLISH)
Expected english messages but will get german messages
Suggested solution
Create an empty resource bundle named jsv-messages_en.properties
Issue:
When validation erros are resolved for a non-english running environment, let's say for instance German, validation messages will arrive in German even when
SchemaValidatorConfig
is set to English locale.Reason:
The
jsv-messages.properties
is by default english, but there isjsv-messages_en<_US>.properties
How to Reproduce:
Suggested solution
Create an empty resource bundle named
jsv-messages_en.properties