polyt
v0.1.1
Published
Main package for the Polyt runtime and CLI. It exposes the common runtime APIs through subpath imports and ships the `polyt` binary.
Readme
polyt
Main package for the Polyt runtime and CLI. It exposes the common runtime APIs through subpath imports and ships the polyt binary.
Install
pnpm add polytWhat is included
| Export source | Key exports |
| --------------------- | ------------------------------------------- |
| polyt/core | Polyt, initPolyt, getPolyt, all types |
| polyt/utilities | loadPolyt, getDomainPolyt |
| polyt/gettext | gettext, ngettext, pgettext, _, … |
| polyt/label | label translation and normalisation helpers |
| polyt/detect-locale | detectLocale |
| polyt/format | format |
| polyt/loader | getGlobTranslations |
When to use individual packages instead
Use the separate packages when:
- You are building a library and want to keep your peer-dependency surface minimal.
- You want the smallest possible bundle and only need one or two packages.
- You are using the extractor or React adapter directly.
