MishkaPay.Gettext (Mishka Pay v0.0.1)

Copy Markdown View Source

Default Gettext backend for Mishka Pay. It holds every message a person can see, such as the errors on a checkout form or a refund, in the mishka_pay domain.

Using your own Gettext backend

config :mishka_pay, :gettext_backend, MyAppWeb.Gettext

Then copy priv/gettext/mishka_pay.pot and the mishka_pay.po files from Mishka Pay into your project's priv/gettext and translate them there, as for every Mishka library.

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.