Skip to content

Newsletters 0.4.2: Layout language tabs that match what the layout stores

Newsletters 0.4.2 fixes the language tabs of the layout editor on sites that name their languages with a dialect code, such as en-US, while a layout stores its text under the base code en.

Those sites got two tabs for one language, the editor opened on the empty one, and saving wrote a second copy beside the original. The editor now shows one tab per site language, and each tab reads and writes the text where the layout already keeps it. Text stored under a code that no site language uses gets its own tab marked not a site language. A subject stored where a send never reads it is marked subject not used by sends, with a note on how to move or clear it. The subject is now saved where sends read it.

The tab’s HTML badge no longer shows for HTML that is only whitespace. The name field also suggests a name made from the display name, with a Use this name button, and its hint spells out the rule: lowercase Latin letters, numbers and underscores, starting with a letter.

Full release notes: Newsletters 0.4.2

0.4.2 · 6 October 2026

Fixed

  • Layout editor language tabs matched the site’s languages, not the layout’s stored translations. A site that spells languages with a dialect (en-US) over a layout storing base keys (en) got duplicate tabs, opened on an empty one and saved a dialect key beside the base key. Layout.language_tabs/2 now gives one tab per site language that reads and writes, per field, the key the layout already stores that language under; stored keys no site language claims get their own tab, and a subject stored where a send never reads it is flagged rather than hidden. The subject is saved under the tab’s HTML key, where a send reads it. (#39)
  • The tab’s “has HTML” badge no longer shows for whitespace-only HTML.

Added

  • The name field suggests a slug made from the display name, and the invalid name error states the rule. (#39)

Newsletters 0.4.2. Install or update: {:phoenix_kit_newsletters, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.