View Source TestWeb.ErrorHelpers (Exzeitable v0.6.0)

Conveniences for translating and building error messages.

Link to this section Summary

Functions

Generates tag for inlined form input errors.

Translates an error message using gettext.

Link to this section Functions

@spec error_tag(
  atom() | %{:errors => [{any(), any()}], optional(any()) => any()},
  atom()
) :: list()

Generates tag for inlined form input errors.

@spec translate_error({binary(), keyword() | map()}) :: binary()

Translates an error message using gettext.