Skip to content

PhoenixKit 1.7.172: Publishing pages in the language of their address

PhoenixKit 1.7.172 fixes localized content pages from the Publishing module, whose interface text came in the site’s default language whatever language the address named.

PhoenixKit set the language only from a route parameter called locale. The routes Publishing creates for content, such as /en/articles, call it language, so the language was never set, and an English page could show Russian navigation. Both names are now read.

For builds from source, rustler is added as an optional dependency, which mdex_native needs when MDEX_NATIVE_BUILD=1 is set.

Full release notes: PhoenixKit 1.7.172

1.7.172 · 3 July 2026

Changed

  • Added the rustler dependency as optional (lockfile). mdex_native builds from source (instead of downloading a precompiled NIF) when MDEX_NATIVE_BUILD=1 is set in the environment; that path requires rustler itself, not just rustler_precompiled.

Fixed

  • Gettext locale falling back to default on publishing content routes. process_locale/1 only matched path_params["locale"], but the internal routes phoenix_kit_publishing generates for localized content (get "/:language/:group") bind the segment as "language" instead. The mismatch meant Gettext.put_locale/1 was never called on those requests, so translations silently rendered in the site default locale regardless of the URL prefix (e.g. /en/articles rendering Russian nav text).

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