A ~t sigil for Gettext translations, with automatic interpolation and per-call modifiers:
~t"Hello, #{user.name}!"
# => gettext("Hello, %{user_name}!", user_name: user.name)use GettextSigils replaces use Gettext in your module and imports the ~t sigil:
use GettextSigils,
backend: MyApp.Gettext,
sigils: [
# ...
]See the README for an overview, and the Interpolation, Modifiers, and Pluralization guides for details.
Options
:sigils- a keyword list of options for the sigil. SeeGettextSigils.Optionsfor the available options.- All other options are passed to
use Gettext(eg.:backend).