Closed gbourant closed 1 year ago
Oh yeah, that's surely true. Do you have a reproducer with internationalised messages? I've never tried this.
Sure, you can check it here: https://github.com/gbourant/validation
Thanks!
in case you need it:
curl 'http://localhost:8080/hello' -H 'Accept-Language: en-US,en;q=0.9,el;q=0.8' -H 'Cookie: _renarde_language=el'
Thanks. Can be done by implementing a LocaleResolver
as indicated in https://quarkus.io/guides/validation#validation-and-localization, as done in Quarkus for RESTEasy Reactive and GraphQL. I can add one for Renarde, should be easy.
Well, I also have to check where it's getting those localised messages from as well.
Should be fixed. Note that I've renamed the cookie to _renarde_locale
to be more in-line with how Quarkus calls these values in the config.
I'm not entirely sure about this, but it feels more coherent. Pity that the JDK and Quarkus call this 'locale' while HTTP calls these 'language' 🤷
It works as expected, thank you.
Hibernate validation ignores the _renarde_language cookie.