Skip to content

Dashboards 0.4.0: The builder in Estonian and Russian

Dashboards 0.4.0 gives the dashboards module its own translations in English, Estonian and Russian. The builder, the widget catalog and the sidebar entries now follow the language the admin is shown in.

Translated dashboards

Until this release, every text in the module was looked up in PhoenixKit core’s translations, which did not contain the module’s own texts. On a site in Estonian or Russian, the manage page, the builder, the Widget catalog and the sidebar tabs stayed in English.

The module now carries its own catalogue of about 125 texts per language, for English, Estonian and Russian. That covers the buttons and messages of the manage page, the settings form and the builder, the project tab, and the names and descriptions of the built-in widgets: Note becomes “Заметка” in Russian and “Märkus” in Estonian, Full screen becomes “Полный экран” and “Täisekraan”. The Dashboards entry in the admin permissions matrix and the module’s sidebar tabs are translated too.

Widgets contributed by other modules keep their own names and descriptions as before. A module that ships widgets translates them itself.

Other changes

The rest of the release is internal. Test fixes follow how PhoenixKit core now builds slugs from titles, the test suite can be pointed at another database, and dependencies were updated, among them Phoenix 1.8.11. None of this changes how a running site behaves.

Upgrading

No migration and no configuration. Update the dependency; the requirement stays at PhoenixKit 2.0 or later. On a site whose admin is in Estonian or Russian, the dashboards pages switch to that language after the update. A site in another language still sees English.

Full release notes: Dashboards 0.4.0

0.4.0 · 12 August 2026

Added

  • Per-module Gettext i18n (en/et/ru) (#7). This package now owns a PhoenixKitDashboards.Gettext backend and its own catalogues under priv/gettext/ (125 msgids per locale). Previously every gettext call here resolved against core’s PhoenixKitWeb.Gettext, so the builder, widget catalog and sidebar rendered in English whatever the locale, with nowhere to add translations for this package. Tab and permission-matrix labels are wired through gettext_backend/gettext_domain, and translatable_labels/0 anchors the four tab labels — declared as plain struct literals that mix gettext.extract cannot see — so mix gettext.merge stops deleting them.

    Web.Helpers.translate_catalog/1 now routes widget catalog data through this module’s backend as well; the built-in widgets’ strings stay anchored by Widgets.__catalog_strings__/0, and a widget contributed by another module passes through unchanged as before.

  • PGDATABASE / PGPOOL overrides for the test suite (#8). config/test.exs reads both from the environment, falling back to the previous hardcoded database name and System.schedulers_online() * 2. Without them the only way to run the :integration half of the suite was a Postgres role holding CREATEDB, which shared and managed instances withhold. CI and local runs are unaffected.

Fixed

  • Dialyzer failed on the new Gettext backend. Gettext 1.0 + Expo 1.1 generate a Gettext.Plural.plural/2 call against Expo’s opaque PluralForms struct inside use Gettext.Backend, reported as call_without_opaque. Added the narrowly-scoped .dialyzer_ignore.exs that the other phoenix_kit_* packages with their own backend already carry, and wired ignore_warnings: in mix.exs.
  • Three slug tests asserted a core contract that no longer exists. Core’s PhoenixKit.Utils.Slug moved its rule into the locale_slug package and made romanization unconditional, documenting :transliterate as accepted-and-ignored. Greek now romanizes (Καλημέρα → kalimera) instead of falling back, є maps to ye rather than ie, and core’s un-optioned default no longer returns "" for Cyrillic. The expectations now track core’s actual output, the fallback case uses CJK (which still has no romanization), and the guard that mattered — that this module delegates to core instead of regrowing its own ASCII-only pipeline — is asserted directly. These predated this release; mix precommit here runs no tests, so they went unnoticed.

Changed

  • Dependency updates: phoenix 1.8.11, beamlab_ex_aws_sqs 5.0.1, hackney 4.7.4 and the transitive set.

Dashboards 0.4.0. Install or update: {:phoenix_kit_dashboards, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.