Document Creator 0.8.0: Category and type names in every language
Document Creator 0.8.0 makes document categories and types translatable. On a site with several languages, an admin can enter a name and description for each language, and the module shows them in the language the admin is viewing.
Language tabs on the category and type forms
When multiple languages are enabled on the site, the category and type forms now show language tabs above the Name and Description fields, using the same multilingual form as other PhoenixKit modules. The main language holds the required name; the other tabs hold the translations.
The translations are stored with each category and type, in a data field that was already there and unused, so no migration is needed.
Translated names everywhere they show
The module now shows the translated name wherever a category or type appears: the list on the Categories page, the category and type filters and pickers in the documents and templates grid, the type select inside the category picker, and the category heading and document type select in the preset form. A category or type with no translation for the current language shows its main name.
Host apps that build their own category or type pickers can do the same: Taxonomy.localized_name/2 returns the name for a given language, and category_options/1 and type_options/2 accept an optional language for translated option labels.
Upgrading
No migration and no configuration change. Update the dependency, then open each category and type to add the translations you need. Until you do, every language keeps seeing the names as they are today.
Full release notes: Document Creator 0.8.0
0.8.0 · 17 August 2026
Added
- Category and Type names are now translatable per-language (#41).
Taxonomy.localized_name/2resolves a display name forCategory/Typethrough the (previously unused)dataJSONB column, mirroringPhoenixKitCatalogue.Catalogue‘s translation mechanism on top ofPhoenixKit.Utils.Multilang.get_language_data/2— no migration needed. Applied at every category/type display site: the admin taxonomy list, the document grid’s category/type filters and pickers, the type-select in the category picker, and the preset form’s category heading and “Document type” select.CategoryFormLiveandTypeFormLivegain language tabs (viaPhoenixKitWeb.Components.MultilangForm) so translations are actually enterable.category_options/1andtype_options/2take an optionallocaleto return translatedoptions_for_select/2labels.
Changed
- Upgraded locked dependencies:
phoenix_kit2.4.0 → 2.8.1 (still within the~> 2.4pin —MultilangForm/Multilangpredate that floor), plusbeamlab_countries,ecto,etcher, andquicpatch/minor bumps.
Document Creator 0.8.0. Install or update: {:phoenix_kit_document_creator, "~> 0.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.