You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @gtamas , I did a little research but can't come up with any actionable solution right now...
I think the best way maybe is pass the Request object (or other context objects) to this function and all the way to the ajvErrorTransformer.
Or, we could find a way to add some contexts to the ajv.ErrorObject by customize validation logic (don't know how, haven't used LB4 recently so I basically forgot everything), then we can identify them in the ajvErrorTransformer function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I know this can be done using i18n-ajv.
So something like:
// application.ts
This is called on every request. However, how do I detect the current locale? The request object doesn't get passed here..
All reactions