PhoenixKitPosts.Gettext (PhoenixKitPosts v0.1.10)

Copy Markdown View Source

Gettext backend for the posts 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: PhoenixKitPosts.Gettext to rebind them to this backend, so the posts strings resolve against this package's catalogs (priv/gettext). Keeps the posts translations self-contained — extract + translate with the module's own mix gettext.extract / mix gettext.merge. Mirrors the sibling PhoenixKitReferrals.Gettext setup.

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.