GettextSigils.Modifiers.KeywordModifier (Gettext Sigils v0.5.1)

Copy Markdown View Source

Built-in modifier that implements the static keyword-list form of modifier configuration.

When a user writes modifiers: [e: [domain: "errors"]], the keyword list is normalized to {KeywordModifier, [domain: "errors"]} so all modifiers flow through the same resolution path. See the Modifiers guide for details.

Options

  • :domain - Gettext domain. Use the :default atom to select the backend's configured default domain, or a binary to override.

  • :context - Gettext context. Use nil to clear the context, or a binary to override.

Summary

Functions

Returns the NimbleOptions schema for this modifier's opts. Exposed so that GettextSigils.Options can interpolate the rendered docs into its top-level schema docstring without duplicating the schema definition.

Functions

schema()

@spec schema() :: NimbleOptions.t()

Returns the NimbleOptions schema for this modifier's opts. Exposed so that GettextSigils.Options can interpolate the rendered docs into its top-level schema docstring without duplicating the schema definition.