Skip to content

Draft: feat(exceptions): Add useformat flag in ValidationError

This adds the possibility to use str.format function to format error messages.


This is a proof of concept to convert our badly written code that uses ValidationError with preformatted translations, using str.format(foo='bar') rather than str % {'foo': 'bar'} (with formatted-string being {s} or {foo:s} rather than %s or %(foo)s), without updating translated strings themselves.

Merge request reports

Loading