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

Copy Markdown View Source

Gettext backend for localize_inputs UI strings.

Hosts the small message catalog used by the unit picker (section headings, search placeholder, etc.). The catalog lives in priv/gettext/. 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.