Skip to content

PhoenixKit 2.13.19: Aligned checkboxes and complete translations

PhoenixKit 2.13.19 lines checkboxes up with their labels and finishes the admin translations, including 175 texts that showed the wrong wording.

Checkboxes with a description sat a little below the first line of their label, by a different amount for each checkbox size. They now sit centred on it, in the storage settings and in the notification preferences of the user settings too.

The German, Spanish, French, Italian and Polish texts each lacked 212 translations; all are now translated, so all seven languages are complete. Some translations had been carried over from a different text and were shown anyway: “Add a country” read as “Add account” and “Crawler Settings” as “Legal settings”, for example. All 175 of them are rewritten.

mix phoenix_kit.doctor no longer reports Git hooks as broken when core.hooksPath points at a folder other than .githooks. It now checks that the folder holds an executable pre-commit.

Full release notes: PhoenixKit 2.13.19

2.13.19 · 2 September 2026

Checkbox alignment (PR #779) and a Git Hooks doctor check that tests the property it actually cares about (PR #778), plus the post-merge review fixes for #779 (dev_docs/pull_requests/2026/779-checkbox-first-line-centering/CLAUDE_REVIEW.md) and the catalogue sweep that closes 2.13.18’s translation backlog.

Fixed

  • Described checkboxes sat 2px below their own label. <.checkbox> nudged the box down with a fixed mt-0.5 whenever a <:description> was present. That constant was tuned for checkbox-sm; the default box is 24px and the label’s line is leading-6 — also 24px — so the nudge was pure error, and checkbox-xs was off by a different amount again. The input now sits in a h-6 flex wrapper that centers any checkbox size against the first text line, and picks up shrink-0 for every caller instead of only the ones that remembered to pass it. The three storage-settings checkboxes that were hand-compensating with class="mt-0.5 flex-shrink-0" drop their nudges.
  • The notification-preferences form kept a hand-rolled copy of that bug. Live.Components.UserSettings built its own <label> + <input> + text block with an mt-1 nudge on a checkbox-sm — 4px of the same error, and exactly what <.checkbox> exists to prevent. Converted to the component, with the description slot guarded by :if so preference types without one still center. Post-merge review of #779.
  • mix phoenix_kit.doctor reported a working Git Hooks setup as broken. The check compared core.hooksPath against the literal string .githooks, so pointing it at any other directory produced a warning — with a “fix” that told the reader to point somewhere unrelated to why. It now checks the property git actually uses: whether the configured directory holds an executable pre-commit. .githooks is only this checkout’s convention.

i18n

  • Every catalogue is complete again — and 175 entries were serving the wrong string. The de/es/fr/it/pl default catalogues each carried 212 untranslated msgids (the backlog 2.13.18 recorded); all 212 are now translated by hand in all five, so all seven translated locales sit at 0 untranslated across default, errors and phoenix_kit.
  • Cleared every fuzzy flag, which was not cosmetic. Elixir Gettext compiles and serves fuzzy entries — the flag is only a translator hint — so 33 entries per Western locale (and 5 in ru/et) were shipping a translation gettext had carried over from a different msgid: “Add a country” rendered as Add account, “Search countries…” as Search files…, “Bedrock error %{status}” as Brevo error, “Crawler Settings” as Legal settings, “Verification” as Notifications, “Check your timezone” as Check your inbox. All 175 rewritten against the msgid they actually belong to. en had one too — “Sign in to request access.” was served as Sign in as user; emptied, so it falls back to the msgid as every other en entry does, and its 41 inert flags went with it. grep -c fuzzy is now 0 across priv/gettext, which makes a non-zero count a real signal again.
  • Line references re-extracted and merged (mix gettext.extract + mix gettext.merge, reported as 0 new, 0 removed, 0 reworded for every locale) after 2.13.18’s digest changes shifted them.

PhoenixKit 2.13.19. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.