Entities 0.4.0: The Entities admin in Estonian and Russian
Entities 0.4.0 gives the module its own translations. The Entities admin, its forms and its messages now come in English, Estonian and Russian, following the language the admin is viewed in.
Its own translation catalogues
Until now, every translatable text in the module was looked up in PhoenixKit’s own catalogue, where the module’s texts never landed. The admin pages of the module showed English whatever the language. The module now carries its own catalogues for English, Estonian and Russian, with close to 500 texts in each: the entities list, the entity and record editors, the data navigator, the settings page with its import and export, the projects data tab, the public form and the error messages.
The names of the field types in the field picker are translated too, such as “Date & Time”, which reads “Kuupäev ja kellaaeg” in Estonian.
Fixes
- The field-type picker no longer changes its order with the language. It sorted the groups by their translated names, so English and Estonian showed them in a different order; it now always follows the same fixed order.
- The module reported its version as 0.2.10 whatever release was installed, so 0.3.0, 0.3.1 and 0.3.2 all reported a number they were not. The version now comes from the package itself.
- The package now includes its
privfolder, which holds the new catalogues. Without it, no site would have received the translations.
Upgrading
Update the dependency; the PhoenixKit requirement is unchanged and there is no migration. On a site whose admin runs in Estonian or Russian, the Entities pages switch to that language after the upgrade. A site in any other language keeps seeing English.
Full release notes: Entities 0.4.0
0.4.0 · 12 August 2026
Added
- Per-module Gettext i18n (en/ru/et) (#28). This package now owns a
PhoenixKitEntities.Gettextbackend and its own catalogues underpriv/gettext/(487 msgids per locale). Previously everygettextcall here resolved against core’sPhoenixKitWeb.Gettext, so strings extracted from this package would never land in any.pofile it ships and the admin UI rendered in English whatever the locale. FieldTypes.label_for/1— translated display labels for field types. Each clause is a literalgettext(...)call, becausegettext(type.label)over the raw@field_typesmap would feed a variable to the extractor and the labels would never be translated at all.PGDATABASE/PGPOOLoverrides for the test suite (#29).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
- The package shipped without its
priv/directory.files:inmix.exslisted onlylib, so the newpriv/gettext/**catalogues would not have reached a single Hex consumer — every install would have rendered raw msgids regardless of locale (#28). version/0reported0.2.10.mix.exsdeclared 0.3.2, so releases 0.3.0, 0.3.1 and 0.3.2 all shipped reporting a version they were not. It is now derived fromMix.Project.config()at compile time rather than hardcoded, which makes the drift unrepresentable, and a test pins the derivation.- The field-type picker reordered itself per locale.
for_picker/0sorted by the translated category label, so the grouping changed with the active language — English puts “Date & Time” before “Choice”, while Estonian’s “Kuupäev ja aeg” sorts after “Valik”. It now sorts bycategory_list/0order, which is locale-independent (#28). - 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.
Changed
- Dependency updates:
phoenix1.8.11,beamlab_ex_aws_sqs5.0.1,hackney4.7.4 and the transitive set.
Entities 0.4.0. Install or update: {:phoenix_kit_entities, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.