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: