@zedtech/zedkit-i18n
Format message templates
Replace `{key}` segments without adopting a full i18n stack.
alpha
Usage
At a glance
- Who: Any TypeScript code with simple
{placeholder}strings. - What: Replace
{key}segments without adopting a full i18n stack. - Use when: Pagination labels, short templates in typed catalogs.
- Avoid when: ICU plurals or locale-aware dates — use
Intlor a dedicated i18n library at the app root.
Install
pnpm add @zedtech/zedkit-i18nLatest: 0.1.0 (via changesets).
Example
import { formatMessage } from "@zedtech/zedkit-i18n";
formatMessage("Page {page} of {pageCount}", { page: 2, pageCount: 5 });Wraps: (none)