Referrals 0.2.0: Admin pages in Russian and Estonian
Referrals 0.2.0 translates the referral code admin pages. The code list, the code form and the settings page now come in Russian and Estonian as well as English, and cancelling a delete now really cancels it.
Translated admin pages
Every text on the list, form and settings pages now goes through the module’s own translation files, which ship with the package. The permission’s name and description are translated too. Russian and Estonian translations are complete.
Delete confirmation
Before, the confirmation shown when deleting a code did not reliably stop the delete when the admin pressed cancel. The list now uses LiveView’s own confirmation, which stops it, and a translated question with an apostrophe can no longer break it.
No migration or configuration: update the dependency.
Full release notes: Referrals 0.2.0
0.2.0 · 27 June 2026
Added
- Internationalization for the admin UI. A module-owned Gettext backend
(
PhoenixKitReferrals.Gettext) with its ownpriv/gettextcatalogs; every admin-facing string in the list, form, and settings LiveViews — plus thepermission_metadata/0label and description — now resolves throughgettext/1. Ships full Russian and Estonian translations alongside the English source. Theprivdirectory is now included in the Hex package so the catalogs travel with the build.
Fixed
- Delete-confirmation on the referrals list now uses LiveView’s native
data-confirminstead of an inlineonclick="return confirm(...)". The previous handler did not reliably stop thephx-clickdelete when the user cancelled, and interpolating a translated string into a JS literal would break on any translation containing an apostrophe.
[0.1.0]
Added
- Initial release. Extracted the referral-codes feature out of PhoenixKit core
into a standalone, auto-discovered module:
PhoenixKitReferralscontext — code CRUD, validation, usage tracking, and system settings (enabled / required / per-code + per-user limits).- Admin UI — referral-code list/form and a settings page, contributed via the
PhoenixKit.Moduletab callbacks. - Signup integration via runtime dispatch from core (registration, OAuth, and magic-link), so core carries no compile-time dependency on this module.
- The referral tables remain owned by PhoenixKit core migrations; this package ships only schemas, logic, and UI.
Referrals 0.2.0. Install or update: {:phoenix_kit_referrals, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.