EzAuth.ErrorHelpers (EzAuth v0.1.0)

Copy Markdown View Source

Translation helpers for changeset errors.

Uses the Gettext backend configured under the :ez_auth, :gettext_backend Application env.

Summary

Functions

Translates a single {message, opts} error tuple.

Translates every {message, opts} error for the given field.

Functions

translate_error(arg)

Translates a single {message, opts} error tuple.

Routes through the configured Gettext backend.

translate_errors(errors, field)

Translates every {message, opts} error for the given field.