Corex.Dialog.Translation (Corex v0.1.0)

View Source

Translatable strings for Corex.Dialog.

Pass translation={%Corex.Dialog.Translation{}} to override any field. Omitted fields use gettext defaults (see table).

FieldDefaultUsed for
closeCloseClose trigger aria-label
labelDialogAccessible name when no visible title (data-dialog-default-label)

Partial override example:

translation={%Corex.Dialog.Translation{
  close: Corex.Gettext.gettext("Dismiss"),
  label: Corex.Gettext.gettext("Modal")
}}

Summary

Types

t()

@type t() :: %Corex.Dialog.Translation{close: String.t(), label: String.t()}

Functions

resolve(partial)