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 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