Skip to content

PhoenixKit 1.6.12: Short language codes in addresses

PhoenixKit 1.6.12 shortens the language part of PhoenixKit addresses to the base code, so pages live under /en/ or /es/ instead of /en-US/ or /es-MX/. Old links with a full dialect code redirect to the short form.

Translations still use the full dialect. Each user can now have a preferred dialect, such as en-GB instead of en-US, kept in a new preferred_locale field; without one, the default dialect for that language applies. The language switchers group dialects under their base language.

Upgrading

Run mix phoenix_kit.update to apply migration V28, which adds the preferred_locale column to users.

Full release notes: PhoenixKit 1.6.12

1.6.12 · 26 November 2025

  • Fixed locale switching to correct base codes

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