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
rustlerdependency as optional (lockfile).mdex_nativebuilds from source (instead of downloading a precompiled NIF) whenMDEX_NATIVE_BUILD=1is set in the environment; that path requires rustler itself, not justrustler_precompiled.
Fixed
- Gettext locale falling back to default on publishing content routes.
process_locale/1only matchedpath_params["locale"], but the internal routesphoenix_kit_publishinggenerates for localized content (get "/:language/:group") bind the segment as"language"instead. The mismatch meantGettext.put_locale/1was never called on those requests, so translations silently rendered in the site default locale regardless of the URL prefix (e.g./en/articlesrendering 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.