@nexusts/i18n
v0.9.4
Published
Internationalization (Intl-based, pluralization)
Downloads
1,878
Readme
@nexusts/i18n
NexusTS — Bun-native fullstack framework
Description
Internationalization (Intl-based, pluralization).
Locale detection middleware (query → cookie → Accept-Language → default). JSON catalogs. Intl-based formatters: formatDate, formatNumber, formatCurrency. Pluralization with the | separator.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/i18nPeer dependencies
None. No external dependencies. Built on the JavaScript Intl API.
Usage
import { /* public API */ } from "@nexusts/i18n";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
