Billing 0.19.1: Billing emails fully in the customer's language
Billing 0.19.1 fixes the rebuilt billing emails of 0.19.0 so their text and dates come in the customer’s language, and the plain-text version leaves out sections that have no content.
The email text could come out in the language of whoever triggered the send, depending on the core version. The module now picks the customer’s language, or the site’s, itself before writing the email. Invoice, due, payment and refund dates were written in English in every language; they now follow the customer’s language too.
The plain-text version of each email kept the bank-transfer details, VAT lines and document links even when the send had no value for them. They are now left out there as well as in the HTML. An invoice without a due date no longer says “Please pay it by -.”
Full release notes: Billing 0.19.1
0.19.1 · 4 October 2026
Follow-up fixes to the 0.19.0 billing emails (PR #46 review).
Fixed
- Billing’s email copy could come out in the sender’s language. The
defaults relied on core to install the customer’s locale for billing’s own
Gettext backend, which core before 2.48.0 does not do and later cores do not
do over a locale already set on that backend.
email_send_opts/4now resolves the customer’s (or the site’s) language itself and builds the defaults inside it, restoring the caller’s locale afterwards. - Dates in the emails were English in every locale. Invoice, due, payment
and refund dates are now written in the customer’s language
(
Oct 16, 2026,16 Okt 2026,16 Окт 2026). - The plain-text bodies kept empty sections. Bank-transfer details, VAT lines and links to the document are now left out of the plain text as well as the HTML when the send has no value for them; a bank name or SWIFT code is optional on its own, and the payment confirmation’s text footer carries VAT like its HTML footer.
- A missing due date no longer prints “Please pay it by -.”
Changed
- Gettext: the plain-text email bodies are translated by section (
en,et,ruupdated).
Billing 0.19.1. Install or update: {:phoenix_kit_billing, "~> 0.19"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.