Theming and i18n
Work with HotCRM labels, translations, and localized documentation.
Theming and i18n
HotCRM's current repository focuses on metadata labels and locale bundles. Runtime theming is handled by the ObjectStack shell; app-specific text lives in translations.
App translations
Locale bundles live in src/sales/translations/.
src/sales/translations/
├── en.ts
├── zh-CN.ts
├── es-ES.ts
├── ja-JP.ts
└── crm.translation.tsWhen you add an object, action, page, view, dashboard, or report with user-visible labels, update the relevant translation files.
Documentation translations
Product docs live in content/docs/.
| Locale | File pattern |
|---|---|
| English | *.mdx |
| Simplified Chinese | *.zh-Hans.mdx |
| Traditional Chinese | *.zh-Hant.mdx |
Navigation metadata follows the same pattern:
meta.json
meta.zh-Hans.json
meta.zh-Hant.jsonWorkflow
- Update the English source page first.
- Mirror the structural changes in localized pages.
- Keep links locale-aware, for example
/zh-Hans/docs/.... - Run the docs type check or build.
pnpm --filter @hotcrm/docs types:check
pnpm --filter @hotcrm/docs buildVerification
For app metadata:
pnpm validate
pnpm typecheckFor docs:
pnpm --filter @hotcrm/docs types:check