PhoenixKit 1.7.173: French translation and translated theme names
PhoenixKit 1.7.173 completes the French translation, which covered only about 5% of the interface, and shows the theme names in the visitor’s language.
All blank French strings are now translated, so sign-in pages, the theme switcher and the admin read in French on a French site. The names in the theme switcher, such as System, Light and Dark, were always English and now follow the language too, as do “Dashboard”, “Settings” and “Log Out” in the user menu. A host can hide entries of that menu with the new authenticated_links attribute.
Migration V80 did not record its own step. If a later migration failed and the update was run again, V80 ran a second time and wrapped email template text twice. It now records its step and skips columns it already converted.
Full release notes: PhoenixKit 1.7.173
1.7.173 · 5 July 2026
Changed
- DaisyUI theme names are now translatable.
ThemeConfig‘s@labelsmap (System, Light, Dark, and 34 other theme names) was hardcoded without gettext wrapping, so it rendered in English regardless of locale. Addstranslated_label/1andtranslated_label_map/0; the theme-switcher dropdown and the layout wrapper’s client-side JS label map now use them. - User dashboard nav gains an
:authenticated_linksattribute.PhoenixKitWeb.Components.UserDashboardNav.user_dropdown/1now acceptsauthenticated_links(default[:admin, :dashboard, :settings, :logout]), mirroring the existing:guest_linksnarrowing. Lets a host app hide menu entries its own navigation already covers (e.g.:dashboard). Narrowing-only::adminstill requiresScope.admin?/1, so it can never grant access. - Dependency bumps:
ex_ast0.12.5 → 0.12.7,mdex0.13.2 → 0.13.3,mdex_native0.2.3 → 0.2.4,swoosh1.26.2 → 1.26.3 (lockfile).
Fixed
- V80 migration could corrupt email-template data on a retried multi-version
run. V80 was the only version module that never recorded its own
COMMENT ON TABLE phoenix_kit IS '80'checkpoint. Because update migrations run with@disable_ddl_transaction(each step auto-commits individually), a failure in a later version would cause a subsequentmix ecto.migrateto resume from V80 and re-run itsALTER COLUMN ... TYPE jsonb USING jsonb_build_object('en', ...)against already-converted columns, double-wrapping the values ({"en": {"en": "..."}}). V80 now writes its checkpoint like every other version and guards the conversion on the column’s current type so it’s idempotent. (#612)
i18n
- French UI strings translated. French was ~5% translated (1688 of 1776
msgids blank in
default.po, all 8 blank inphoenix_kit.po) despite most strings being reachable from public-facing pages (theme switcher, “Log in”, etc.). All ~1782 blank entries acrossdefault.po/phoenix_kit.po/errors.poare now translated to idiomatic French (formal register, plural forms per entry). - Localized three previously-hardcoded labels in the user dashboard nav
(“Dashboard”, “Settings”, “Log Out”) via
gettext/1, matching the rest of the component; new msgids extracted across all locale catalogs.
Internal
- Ignore a
Gettext.Backend-generatedcall_without_opaqueDialyzer false positive (Expo’s opaquePluralFormsstruct passed intoGettext.Plural.plural/2) somix precommitpasses on Erlang 28 / Elixir 1.19. Already on the latestgettext1.0.2 /expo1.1.1; no user code is involved.
PhoenixKit 1.7.173. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.