PhoenixKitReferrals.Gettext (PhoenixKitReferrals v0.2.0)

Copy Markdown View Source

Gettext backend for the referrals module's own translations.

The module's admin LiveViews use PhoenixKitWeb (which binds the gettext macros to core's PhoenixKitWeb.Gettext) and then use Gettext, backend: PhoenixKitReferrals.Gettext to rebind them to this backend, so the referrals strings resolve against this package's catalogs (priv/gettext). Tab labels pass this module as their gettext_backend. Keeps the referrals translations self-contained — extract + translate with the module's own mix gettext.extract / mix gettext.merge.

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.