This change introduces a bug.

`default_error_messages['invalid']` won't be translated correctly.