Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the language type of networknt exception information #982

Closed
Dloadinghao opened this issue Mar 5, 2024 · 2 comments
Closed

Comments

@Dloadinghao
Copy link

Does the networknt have a built-in method to modify the language type of exception information For example, I would like the language type of exception information to be unified in English

@justin-tay
Copy link
Contributor

If you are referring to the validation messages, by default it will use the system locale.

You can either set the system locale, via Locale.setDefault or configure the SchemaValidatorsConfig with Locale.ENGLISH.

@Dloadinghao
Copy link
Author

If you are referring to the validation messages, by default it will use the system locale.

You can either set the system locale, via Locale.setDefault or configure the SchemaValidatorsConfig with Locale.ENGLISH.

Thank you for your reply. My problem has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants