Skip to main content
Sonamu automatically extracts labels from Entity definitions and includes them in sd.generated.ts. This eliminates the need to manually write Entity-related text in the dictionary.

Auto-extracted Items

1. Entity Title

The Entity’s title property is extracted as the entity.{EntityId} key:

2. Prop Labels

Each prop’s desc 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:
  1. Entity Title: Edit on the Entity detail page
  2. Prop Labels: Edit each prop’s desc field
  3. Enum Labels: Edit in the Enum edit modal
After saving, entity.json is updated, and it will be reflected in sd.generated.ts upon pnpm sync.

Multilingual Entity Labels

Entity labels are stored only in defaultLocale. 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