Skip to content

PhoenixKit 3.6.1: Sign-in and sign-up messages in the site's own language

PhoenixKit 3.6.1 fixes sign-in and sign-up on Phoenix sites whose primary language is not the app’s default: the messages and the page a new account is sent to now come in the site’s own language.

Sign-in and sign-up answer in the primary language

The sign-in, registration and password-change forms of the primary language send their data to addresses without a language prefix, such as /users/log-in. Those addresses did not set a language, so the message after submitting (“Account created successfully!”, “Welcome back!”, “Password updated successfully!”, and the error messages) and the next page followed the app’s default language instead. A Russian site with an English default sent a new account to /en/users/confirm, in English.

These addresses now use the site’s primary language, as the pages without a prefix already did. The same goes for signing out, social sign-in, magic link, QR code and passkey completions, the registration link, and switching between accounts and organizations. The texts of the cookie banner, when a page fetches them, now also come in the primary language. A site no longer needs config :gettext, :default_locale set to its language for any of this.

Upgrading

No migration and no configuration. Update the dependency; it now needs phoenix_kit_templates 0.2.5 or later, which changes nothing in the emails. If your app sets the PhoenixKit language in its own :browser pipeline, note that these endpoints now use the primary language instead, as the prefixless pages already did. A per-domain default set with Languages.put_request_default_language/1 applies to them.

Full release notes: PhoenixKit 3.6.1

3.6.1 · 16 November 2026

Changed

  • phoenix_kit_templates floor is ~> 0.2.5. Email.Markdown finds placeholders with PhoenixKit.Templates.Substitution.split/1 instead of its own copy of the placeholder regex, so the Markdown renderer and the substitution it feeds can no longer disagree about what a placeholder is. No change in output.

Fixed

  • The prefixless auth endpoints answer in the site’s primary language. The sign-in, registration and password-change forms of the primary language post to the prefixless POST /users/log-in, whose scope (generate_basic_scope/1) had no locale step, so the flash (“Account created successfully!”, “Welcome back!”, “Password updated successfully!”, the error messages) and the redirect followed the host’s gettext default: a Russian site with an English default sent a new account to /en/users/confirm in English. The scope now runs :phoenix_kit_locale_validation, as its /:locale/ twins and the prefixless pages do, so every endpoint in it answers in the primary language: also GET/DELETE /users/log-out, the OAuth request and callback, the magic-link, QR, passkey and registration-link completions, and context and organization switching. A host no longer needs config :gettext, :default_locale set to the site’s language for this.
    • GET /api/consent-config (the cookie banner’s texts, fetched by pages that render no #pk-consent-root) now comes in the primary language, whatever language the page that asks for it is in.
    • A host that sets the PhoenixKit Gettext locale in its own :browser pipeline is now overridden on these endpoints by the primary language, as it already was on the prefixless pages. A per-domain default set with Languages.put_request_default_language/1 now applies to them.

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