Kamod i18n
Installation#
Install the core package:
pnpm add @kamod-ch/i18n
For Preact integration, install Preact as well:
pnpm add preact
Requirements#
- ESM-compatible tooling
- TypeScript 5 or newer is recommended
- A runtime with the required
IntlAPIs
The core entry point has no runtime dependencies:
import { createI18n } from "@kamod-ch/i18n";
Preact helpers use a separate entry point:
import { I18nProvider, useI18n } from "@kamod-ch/i18n/preact";