Corex.FileUpload.Translation (Corex v0.1.0-rc.1)

View Source

Translatable strings for Corex.FileUpload.

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

FieldDefaultUsed for
dropzoneDrag your file(s) hereDropzone label when the slot is empty
openUpload file(s)Open picker button when the slot is empty

Partial override example:

translation={%Corex.FileUpload.Translation{
  dropzone: Corex.Gettext.gettext("Drop files here"),
  open: Corex.Gettext.gettext("Browse files")
}}

Summary

Types

t()

@type t() :: %Corex.FileUpload.Translation{dropzone: String.t(), open: String.t()}

Functions

resolve(partial)