PhoenixKit 2.50.0: Languages becomes core, new buckets join no profile by default
PhoenixKit 2.50.0 makes Languages part of core, with its on/off switch on its own settings page, and lets a new storage bucket stay out of every storage profile.
Languages is always on
Languages was a module with a card on the Modules page, but nothing installed or removed it, and the card really controlled whether the site is multi-language. It is now part of core. The first card of Settings → Languages is Multiple languages, the same setting as before, so an existing site keeps its state, its role grants and its configured languages. Off, the site serves its fallback language only and the page shows just the switch; on, the configuration and switcher preview appear.
A language menu used to offer about a dozen languages the site does not serve when the module was off, each linking to a route that does not exist. Menus now offer only the enabled languages, and the admin user menu hides its language section when there is only one.
New buckets and storage profiles
Before, every bucket created in Settings → Media joined the Default profile and was written to by every library without a profile of its own. The new-bucket form now asks which storage profile the bucket joins, with None first. With None, the bucket receives and serves nothing until a profile lists it.
Upgrading
Run mix phoenix_kit.update if you have not already. Code that looked Languages up with ModuleRegistry.get_by_key("languages") now gets nil; Languages.enabled?/0 and get_enabled_languages/0 work as before. Full operator-access checks now require the languages permission even while multi-language is off.
Full release notes: PhoenixKit 2.50.0
2.50.0 · 3 October 2026
Changed
-
Languages is core and always on; the Modules page toggle becomes a switch on its own settings page. Languages was a feature module with an Enabled/Disabled card on Modules, but it is bundled, nothing installs or removes it, and what the toggle really controlled was whether the site is multi-language. It now follows Jobs:
languagesis a core permission key (Permissions.core_section_keys/0, sofeature_enabled?("languages")is always true), its Settings → Languages tab is a core admin tab, andPhoenixKit.Modules.Languagesis no longer aPhoenixKit.Moduleor inModuleRegistry. The first card of Settings → Languages is Multiple languages, the samelanguages_enabledsetting (Languages.enabled?/0,enable_system/0,disable_system/0), so an existing install keeps its state, its role grants (the key is unchanged) and its configured languages. Off, the site serves its configured fallback locale only and the page shows just the switch; on, the configuration, URL behaviour and switcher preview appear. The page used to be refused byAuthwhile the module was off, so the switch could only be reached from Modules; the core key is what lets it live on the page.- Language configuration APIs keep their behavior; the former
PhoenixKit.Modulecallbacks are removed.get_languages/0now backs the settings page (empty while off) instead of the preview list, which no admin screen shows any more. - Full operator-access checks now require
languageseven while the site’s multi-language switch is off. Custom roles keep their existing grants; no additional authority is backfilled. migrate_legacy/0(the one-time copy ofpublishing_default_language_no_prefix) was run by the registry’s boot sweep;PhoenixKit.Supervisornow calls it next tonormalize_language_settings/0.- Packages that call
Languages.enabled?/0orget_enabled_languages/0are unaffected. Anything that looked the module up asModuleRegistry.get_by_key("languages")now getsnil.
- Language configuration APIs keep their behavior; the former
-
The new-bucket form asks which storage profile the bucket joins, and offers “None” first. Before, every bucket created in Settings → Media silently joined the Default profile, so it was written to by every library that names no profile of its own. With none chosen the bucket is only added to the system: it receives and serves nothing until a profile lists it (Storage profiles tab). A chosen profile takes it as a primary and the profile’s files are placed again.
Storage.create_bucket/2takesprofile:(nil, a site profile’s uuid, or:default, which is what it did and still does when no option is given, so existing callers are unchanged);Profiles.add_bucket/3is the general form ofadd_to_default/1.
Fixed
-
Language settings and navigation review fixes. Locale switching preserves an unrelated host segment such as
/nl/productswhen Dutch is not enabled; an explicit current locale still strips a language that has since been disabled. An empty frontend dropdown no longer renders a globe menu. The Languages page’s preview controls now update both its generated code and live preview, restoring saved languages no longer claims English is the default, and configuration events from an already-open page are refused after another admin turns multiple languages off. -
A language menu offered languages the site does not serve when the Languages module was off. The admin user menu and the frontend
Core.LanguageSwitcherreadLanguages.get_display_languages/0, which returns a dozen hardcoded defaults while the module is off (it feeds the admin Languages page’s preview), so a host with the module disabled showed ja, es, fr and the rest, each linking to a locale route that does not exist. Both now readLanguages.get_enabled_languages/0, which is empty while the module is off, and the continent grouping (get_enabled_languages_by_continent/0) follows. Two lesser corrections ride along: a language switched off inside an enabled module is no longer offered by the frontend switcher, and the admin user menu hides its language section when there is only one language, as the dashboard menu already did.get_display_languages/0keeps its behaviour and now says it is not a list to offer a visitor.
i18n
- The Multiple languages card and its flash messages in all seven locales; the three Modules-card strings that nothing uses any more are gone.
- The new-bucket form’s storage profile strings in all seven locales.
PhoenixKit 2.50.0. Install or update: {:phoenix_kit, "~> 2.50"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.