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

When 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/.

LocaleFile 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.json

Workflow

  1. Update the English source page first.
  2. Mirror the structural changes in localized pages.
  3. Keep links locale-aware, for example /zh-Hans/docs/....
  4. Run the docs type check or build.
pnpm --filter @hotcrm/docs types:check
pnpm --filter @hotcrm/docs build

Verification

For app metadata:

pnpm validate
pnpm typecheck

For docs:

pnpm --filter @hotcrm/docs types:check

On this page