zedkit
@zedtech/zedkit-i18n

Format message templates

Replace `{key}` segments without adopting a full i18n stack.

alpha

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 Intl or a dedicated i18n library at the app root.

Install

pnpm add @zedtech/zedkit-i18n

Latest: 0.1.0 (via changesets).

Example

Usage
import { formatMessage } from "@zedtech/zedkit-i18n";
formatMessage("Page {page} of {pageCount}", { page: 2, pageCount: 5 });

Wraps: (none)

On this page