We couldn't agree with the JAX-RS 2.1 EG on a way for passing the HTTP request locale to BV for the purposes of message interpolation. The reason being, that the HTTP request header can actually contain multiple locales, each with a given quality. Typically, one would like to obtain messages from the locale with the highest quality value and fall back to another locale only if needed. For this to work, BV and its message interpolator would have to receive all the requested locales in order of their quality. Related discussions:
We couldn't agree with the JAX-RS 2.1 EG on a way for passing the HTTP request locale to BV for the purposes of message interpolation. The reason being, that the HTTP request header can actually contain multiple locales, each with a given quality. Typically, one would like to obtain messages from the locale with the highest quality value and fall back to another locale only if needed. For this to work, BV and its message interpolator would have to receive all the requested locales in order of their quality. Related discussions:
https://javaee.groups.io/g/jaxrs-spec/topic/5074115
https://javaee.groups.io/g/jaxrs-spec/topic/5145800