Closed ajroetker closed 7 years ago
CLA signed by all contributors.
Verified that this does indeed pass the translation through the stack, I tested by standing up a PuppetDB and RBAC and adding a translation for a revoked token exception messages, and passing Accept-Language: fr to PuppetDB which in turn used the translated error.
@camlow325 was this what you had in mind or were you thinking I should lowercase all the headers?
👍 If there's a reasonable spot for it, it might be good to put info that we are doing this somewhere in the docs? But that could go in a separate PR (such as when we do the changelog for the next release).
This commit passes the negotiated locale via the i18n/locale variable through the Accept-Language header by default in a clj-http-client request (only in the Clojure client, not the Java client).