Skip to content

Translation breaks with htmlSafe flag #49

@hanssen

Description

@hanssen

I just added the htmlSafe flag by default as mentioned here. Then some of my validation message are broken: "undefined is invalid". It seemd the default messages like blank are broken, whereas custom messages still work.

A workaround for me is disabling the htmlSafe flag for the validation messages, which I configured to have prefix: 'forms.errors'.

return this._super(key, assign({ htmlSafe: !key.includes('forms.errors.') }, options));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions