2 Commits
Author SHA1 Message Date
dualfroz 152cbaaf2f Describe this repository 2026-10-22 21:05:51 +02:00
dualfroz 5f07976a1f fix: use req.t for the ValidationError message when t is not passed
ValidationError only translated its "The following field is invalid"
prefix when a t function was passed as the second argument, otherwise
it used the English strings. Errors thrown from hooks with just req
were always shown in English in the admin toast.

The constructor now falls back to req.t when t is not passed, before
using the English strings.
2026-10-17 03:33:29 +02:00