@stridge/noctis-intl
v1.0.0-beta.5
Published
 
Readme
@stridge/noctis-intl
The internationalization engine for the design system. It is a vendored,
framework-agnostic core — Adobe's @internationalized/{date,number,string} plus the
string-compiler, copied in under the Apache License 2.0 — wrapped with React i18n hooks and the
en/fa message catalogs. The vendored source is not consumed as an npm dependency; see
VENDORED.md, NOTICE.txt, and LICENSE for
provenance and attribution.
Usage
Apps consume this through the umbrella package as @stridge/noctis/i18n, which re-exports
everything below. It is also publishable standalone as @stridge/noctis-intl.
import { useDateFormatter, useNumberFormatter, useLocale } from "@stridge/noctis-intl/react";
const df = useDateFormatter({ dateStyle: "medium" });The React layer exposes useDateFormatter, useNumberFormatter, useCollator, useFilter,
useListFormatter, useLocalizedStringFormatter, useLocale, useIsSSR, and the
LocaleContext. The framework-agnostic engine classes (DateFormatter, NumberFormatter,
NumberParser, LocalizedStringFormatter, …) and the isRTL / Locale / TextDirection
direction helpers are available off the main barrel too.
Subpaths
@stridge/noctis-intl— engine values + direction helpers (no React).@stridge/noctis-intl/date,/number,/string— the individual vendored engines.@stridge/noctis-intl/react— the locale-aware React hooks.@stridge/noctis-intl/messages/en,/messages/fa— the message catalogs.
Scripts
sync:intlre-vendors the upstream Adobe source (keepLICENSE+NOTICE.txt).build:i18ncompiles the ICU message catalogs.buildrunstsdown;check:publishrunspublint.
See VENDORED.md for the upstream commit and re-sync instructions, and /AGENTS.md for repo-wide rules.
