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.Gettextbackend and its own catalogues underpriv/gettext/(125 msgids per locale). Previously everygettextcall here resolved against core’sPhoenixKitWeb.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 throughgettext_backend/gettext_domain, andtranslatable_labels/0anchors the four tab labels — declared as plain struct literals thatmix gettext.extractcannot see — somix gettext.mergestops deleting them.Web.Helpers.translate_catalog/1now routes widget catalog data through this module’s backend as well; the built-in widgets’ strings stay anchored byWidgets.__catalog_strings__/0, and a widget contributed by another module passes through unchanged as before. -
PGDATABASE/PGPOOLoverrides for the test suite (#8).config/test.exsreads both from the environment, falling back to the previous hardcoded database name andSystem.schedulers_online() * 2. Without them the only way to run the:integrationhalf of the suite was a Postgres role holdingCREATEDB, 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/2call against Expo’s opaquePluralFormsstruct insideuse Gettext.Backend, reported ascall_without_opaque. Added the narrowly-scoped.dialyzer_ignore.exsthat the otherphoenix_kit_*packages with their own backend already carry, and wiredignore_warnings:inmix.exs. - Three slug tests asserted a core contract that no longer exists. Core’s
PhoenixKit.Utils.Slugmoved its rule into thelocale_slugpackage and made romanization unconditional, documenting:transliterateas accepted-and-ignored. Greek now romanizes (Καλημέρα→kalimera) instead of falling back,єmaps toyerather thanie, 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 precommithere runs no tests, so they went unnoticed.
Changed
- Dependency updates:
phoenix1.8.11,beamlab_ex_aws_sqs5.0.1,hackney4.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.