GettextSigils.Interpolation (Gettext Sigils v0.5.1)

Copy Markdown View Source

Translates Elixir string interpolation into Gettext message format.

Parses the AST of a ~t sigil and produces a Gettext msgid string (with %{key} placeholders) and a keyword list of bindings.

See the Interpolation guide for key derivation rules, handling of ambiguous keys, and the explicit key = expr syntax.

Summary

Functions

parse!(expr)