sd.generated.ts. This eliminates the need to manually write Entity-related text in the dictionary.
Auto-extracted Items
1. Entity Title
The Entityβstitle property is extracted as the entity.{EntityId} key:
2. Prop Labels
Each propβsdesc property is extracted as the entity.{EntityId}.{propName} key:
3. Enum Labels
enumLabels defined in the Entity are extracted as enum.{EnumId}.{value} keys:
4. OrderBy / SearchField Labels
Enums used in ListParams are also automatically extracted:Editing Labels in Sonamu UI
You can directly edit labels in Sonamu UIβs Entity edit screen:- Entity Title: Edit on the Entity detail page
- Prop Labels: Edit each propβs
descfield - Enum Labels: Edit in the Enum edit modal
entity.json is updated, and it will be reflected in sd.generated.ts upon pnpm sonamu sync.
Multilingual Entity Labels
Entity labels are stored only indefaultLocale. Translations for other locales should be written directly in the respective localeβs dictionary file:
Bulk Translation via Excel
You can export all keys including Entity labels as Excel from Sonamu UIβs i18n management page, translate them, and import back.Excel Import/Export
Bulk translation file management
Using the SD Function
Writing and using dictionaries