Catalogue 0.12.1: Import language switch keeps working with newer PhoenixKit
Catalogue 0.12.1 keeps the language switch on the import screen working with PhoenixKit 1.7.199, which added its own automatic language switching to multilingual pages.
The import screen switches language at once with its own handler. With the new core behaviour, that handler would no longer have been reached, so the import screen now opts out of the automatic switching. The catalogue, category and item forms use the core behaviour and drop their own unused handlers. Switching language works the same on all of them.
Full release notes: Catalogue 0.12.1
0.12.1 · 17 July 2026
Fixed
- Import screen’s language picker would have been double-handled by core’s new auto hook (#46) —
phoenix_kit1.7.199 (core PR #643) mademount_multilang/2auto-attach a"switch_language"event hook via a debounced skeleton UX.ImportLiveintentionally switches language immediately (no debounce) through its ownhandle_event("switch_language", …)clause, so it now opts out withmount_multilang(auto_switch_language: false)to keep that clause reachable. - Three other form LiveViews carried a now-dead
switch_languageclause —CatalogueFormLive,ItemFormLive, andCategoryFormLivestill defined their ownhandle_event("switch_language", …)clause even though they callmount_multilang()with the defaultauto_switch_language: true, so the clause was unreachable (the core hook halts before it) as of thephoenix_kit1.7.199 pin. Not a behavior bug — the hook calls the same helper the dead clauses called — but misleading dead code; removed in all three files. Seedev_docs/pull_requests/2026/46-import-multilang-auto-switch-language/CLAUDE_REVIEW.md.
Notes
- Verification:
mix format,mix compile --warnings-as-errors,mix credo --strict, andmix dialyzerare all clean.mix testcould not be run in this environment (no local Postgres) — the affected code paths are exercised end-to-end (through the real LiveView hook dispatch) by the existingtest/web/form_lv_branches_test.exsswitch_language tests; get a real CI/Postgres run before treating this release as fully verified.
Catalogue 0.12.1. Install or update: {:phoenix_kit_catalogue, "~> 0.12"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.