reitit

Hasan Ahmed 2025-07-12T19:24:13.138019Z

hello, i am using malli coercion. my malli schemas have error messages for two locales. how can i go about instructing reitit to use one locale over the other per request for humanizing errors?

Hasan Ahmed 2025-07-12T23:05:51.082489Z

this is my current setup for reference:

(reitit.coercion.malli/create
                       {:error-keys #{:coercion :in :schema :value :errors :humanized}
                        :compile mu/closed-schema
                        :strip-extra-keys true
                        :default-values true})

Hasan Ahmed 2025-07-25T20:10:36.010629Z

if anyone encounters the same problem, I resolved this by re-implementing coerce-exceptions-middleware. I don't imagine this is the best approach but it has been working well