Key Features
- Type Safety: Compile-time errors when using non-existent keys
- Automatic Entity Label Extraction: title, prop.desc, and enum labels are automatically included in the dictionary
- Function Value Support: Dynamic message generation (
(count) => \$ itemsโ) - Korean Helpers: Particle handling (์/๋, ์ด/๊ฐ), pluralization, etc.
- Excel import/export: Manage translation files through Sonamu UI
- Locale-specific Column Support: Multilingual DB columns like
name_ko,name_en
Architecture
Auto-generated Files
sd.generated.ts includes the following:
| Item | Description | Example Key |
|---|---|---|
| Entity Title | Entityโs title property | entity.User |
| Prop Label | propโs desc property | entity.User.email |
| Enum Label | enumLabels definition | enum.UserRole.admin |
| SD Function | Type-safe translation function | - |
| localizedColumn | Multilingual DB column support | - |
Workflow
- Define title, prop.desc, and enumLabels in Entity
- Run
pnpm syncto auto-generatesd.generated.ts - Write project dictionaries in
ko.ts,en.ts - Use
SD("key")function to get text matching the current locale