Messages
liquid2.Translations
Bases: Protocol
Message catalog interface.
An object implementing this protocol is expected to be available in a render context.
Could be a GNUTranslations
instance from the gettext
module,
a Babel Translations
object, or any object implementing gettext
,
ngettext
, pgettext
and npgettext
methods.
npgettext
Do plural-forms context and message lookup.
liquid2.MessageTuple
Bases: NamedTuple
The tuple expected to be returned from babel extraction methods.