Money.Input.Gettext (Money.Input v0.2.3)

Copy Markdown View Source

Gettext backend for ex_money_input UI strings.

Hosts the message catalog for the currency picker's labels — placeholders, aria labels, section headings, empty-state text. The catalog lives in priv/gettext/ and ships with English source plus a starter set of locale translations; downstream apps can add or override translations by configuring their own Gettext backend and merging the .po files.

Activated only when the host project depends on :gettext. The components module gates its use Localize.Message.Sigils call on this backend being available.

Uses Localize.Gettext.Interpolation so all messages can use MF2 (MessageFormat 2) syntax for placeholders, plural/select selectors, and inline markup — consistent with the rest of the Localize ecosystem.

Summary

Functions

handle_missing_bindings(exception, incomplete)

Callback implementation for Gettext.Backend.handle_missing_bindings/2.

handle_missing_plural_translation(locale, domain, msgctxt, msgid, msgid_plural, n, bindings)

Callback implementation for Gettext.Backend.handle_missing_plural_translation/7.

handle_missing_translation(locale, domain, msgctxt, msgid, bindings)

Callback implementation for Gettext.Backend.handle_missing_translation/5.