Skip to content

Catalogue 0.8.0: AI translation now comes from the AI module

Catalogue 0.8.0 follows AI translation out of PhoenixKit core into the separate AI module. Translating catalogues, categories and items works the same as before.

PhoenixKit moved its AI translation pipeline and the translate button into the phoenix_kit_ai package, keeping only the AI tables in core. The catalogue forms now use it from there. Nothing changes in how translations are made or stored.

Upgrading

Catalogue 0.8 adds phoenix_kit_ai 0.4 or later as a dependency; mix deps.get fetches it. The 0.3 line of the AI module does not contain the translation pipeline.

Full release notes: Catalogue 0.8.0

0.8.0 · 8 June 2026

Changed

  • AI translation moved to the phoenix_kit_ai plugin (#34) — the AI-translation pipeline and AI-translate UI moved out of core into the standalone phoenix_kit_ai plugin (core now keeps only the AI table migrations). Catalogue’s consumer was rewired accordingly: the AITranslatable/AITranslateBinding behaviours and the form-LiveView macro/imports moved PhoenixKit.Modules.AI.{Translatable,Translations} + PhoenixKitWeb.Components.AITranslate.{…} → PhoenixKitAI.{Translatable,Translations} + PhoenixKitAI.Components.AITranslate.{…}. ai_translatables/0 is now a plain public function — core dropped the PhoenixKit.Module callback, and the plugin discovers the function by duck-typing — so the @impl PhoenixKit.Module was removed. No behavior change; the moved adapter logic (multilang _-prefix mapping, FOR UPDATE merge, force-put) is untouched.
  • Dependency upgrades — phoenix_kit 1.7.132 → 1.7.133, req 0.5 → 0.6.

Added

  • Local cross-repo development via <APP>_PATH — mix.exs gained an env-gated pk_dep/3 helper: export e.g. PHOENIX_KIT_PATH=../phoenix_kit or PHOENIX_KIT_AI_PATH=../phoenix_kit_ai to build/test against a local checkout of a phoenix_kit* dep (Mix swaps the Hex pin for a path: + override: true dep at resolve time). Unset = the published pin, so mix deps.get / mix hex.publish / CI resolve exactly as before. Documented in AGENTS.md.

Notes

  • Adds phoenix_kit_ai ~> 0.4 as a direct dependency. AI translation (the embed macro + translation pipeline: PhoenixKitAI.{Translatable,Translations}, PhoenixKitAI.Components.AITranslate.{Embed,FormBinding,FormGlue}) now lives in the AI plugin and first shipped in 0.4.0 — the 0.3.x line does not contain it. The constraint is ~> 0.4 (loose, < 1.0); pin phoenix_kit_ai >= 0.4.0 in the parent app.
  • Verification: mix precommit is clean (compile --warnings-as-errors + format --check-formatted + credo --strict + deps.unlock --check-unused + dialyzer) against the published dependency set — no local-path overrides. The full ExUnit suite is DB-gated — run mix test against a host with PostgreSQL.

Catalogue 0.8.0. Install or update: {:phoenix_kit_catalogue, "~> 0.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.