Localize.Inputs (Localize.Inputs.Core v0.1.0)

Copy Markdown View Source

Shared base for the Localize.Inputs family of locale-aware form input libraries:

  • localize_number_inputsLocalize.Inputs.Number.* (number, unit, currency-style numeric input via Localize.Inputs.Number.Components.number_input/1 and unit_input/1).

  • localize_datetime_inputsLocalize.Inputs.Date.* (and later .Time / .DateTime), plus the popup-calendar Phoenix component family. Depends on calendrical for multi-calendar arithmetic.

  • money_inputMoney.Input.* (money amount with currency picker). Lives in the Money library family; included in the Localize.Inputs playground for demonstration.

This localize_inputs_core package ships the bits that all of the above use:

  • Localize.Inputs.ValidationError — the shared validation error exception every validator returns.

  • Localize.Inputs.Gettext — the Localize-interpolated Gettext backend used for the libraries' UI strings (button labels, ARIA labels, hint text).

  • priv/static/localize_inputs_core.css — the --li-* CSS variable token set with light- and dark-mode defaults; consumer libraries reference the same tokens so a single theme override at the host-app level retints every Localize input.

No HEEx components, parsers, or JS hooks live here. Each sibling library carries its own.