Gettext not working with validate_length

Oh I see ! You are using a custom error message. In that case you should use a gettext backend in your changeset like this:

|> validate_required([:password], message: MyApp.Gettext.gettext(“test validate required”))

Then of course you will use mix gettext to extract the new message into your po files. You don’t have to add the msgid by hand.