Relocate the ~6k-file docs tree from the repo root into plugins/document-navigator/docs/ so the plugin is self-contained and portable. docs/superpowers/ (specs and plans) stays at the repo root. Moved via cp+rm rather than git mv because directory rename() fails with EPERM on this WSL /mnt DrvFs mount; git rename-detection pairs the identical-content files at commit time. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5.0 KiB
5.0 KiB
i18n
Internationalization core, backends, detectors, and locale resolution.
Packages in i18n
19 packages.
| Package | Description |
|---|---|
@suaveplan/i18n |
Slim integration core for the i18n family. After the Wave 6 modular split, this package owns the MessageCatalog, the createI18n / I18nInstance plugin slo… |
@suaveplan/i18n-backend-chained |
Universal chained backend orchestrator for the @suaveplan/i18n family. Composes N backends into a single Backend with read-fallthrough on `BACKEND_LOCALE_N… |
@suaveplan/i18n-backend-fs-multifile |
Server-tier multi-file Node fs/promises translation backend for the @suaveplan/i18n family. Reads //. (nested), /.. (flat), or a caller-supplied glob pattern. JSON built-in; YAML and JSON5 auto-detected via dynamic import. Optional fs.watch loop emits loaded events through the catalog event bus. AbortSignal cancellation, OpenTelemetry instrumentation under i18n.backend.fs_multifile.*. Server-only — uses node:fs/promises; browser consumers should use @suaveplan/i18n-backend-http or @suaveplan/i18n-backend-storage. |
@suaveplan/i18n-backend-http |
Universal translation backend for the @suaveplan/i18n family, backed by an injectable fetch. Read-only by design: maps HTTP 404 to `BACKEND_LOCALE_NOT_AVAI… |
@suaveplan/i18n-backend-memory |
Universal in-memory translation backend for the @suaveplan/i18n family. Backed by Map<locale, Map<namespace, TranslationRecord>> plus a modification ledger… |
@suaveplan/i18n-backend-storage |
Universal translation backend for the @suaveplan/i18n family, backed by any AbstractStorage implementation from @suaveplan/storage. Implements the full `… |
@suaveplan/i18n-detector |
Universal locale-detection chain for the @suaveplan/i18n family. Ships the chain orchestrator, the BCP-47 default negotiator, the getTextDirection / `isRtl… |
@suaveplan/i18n-formatter-collator |
Wrapper around Intl.Collator for the @suaveplan/i18n family — locale-aware string comparison and sorting (sensitivity, numeric-aware natural sort, case-fir… |
@suaveplan/i18n-formatter-currency |
Locale-aware currency formatting backed by Intl.NumberFormat with style: "currency". Wave 3 of the 14-package i18n modular split. Provides both a class (`C… |
@suaveplan/i18n-formatter-date |
Wrapper around Intl.DateTimeFormat for the @suaveplan/i18n family — 8-preset table (short/medium/long/full × date+time/time-only/date-only), range renderin… |
@suaveplan/i18n-formatter-display-name |
Wrapper around Intl.DisplayNames for the @suaveplan/i18n family — locale-aware language, region, script, currency, and calendar display names. Universal le… |
@suaveplan/i18n-formatter-list |
Locale-aware list joining backed by Intl.ListFormat. Wave 3 of the 14-package i18n modular split. Provides both a class (ListFormatter) and a standalone he… |
@suaveplan/i18n-formatter-number |
Locale-aware number formatting backed by Intl.NumberFormat. Wave 3 of the 14-package i18n modular split. Provides both a class (NumberFormatter) and a stan… |
@suaveplan/i18n-formatter-relative-time |
Locale-aware relative-time formatting backed by Intl.RelativeTimeFormat. Wave 3 of the 14-package i18n modular split. Provides both a class (`RelativeTimeFor… |
@suaveplan/i18n-formatter-segmenter |
Wrapper around Intl.Segmenter for the @suaveplan/i18n family — locale-aware text segmentation by grapheme, word, or sentence. Compound emoji count as a sin… |
@suaveplan/i18n-icu-parser |
ICU MessageFormat parser, {{var}} interpolation engine, and 9-language CLDR pluralization for the @suaveplan/i18n family. Universal leaf package — depends… |
@suaveplan/i18n-shared |
Shared runtime atoms for the entire @suaveplan/i18n* package family — locale constants, BCP-47 normalisation map, RTL set, locale descriptors, interpolation… |
@suaveplan/locale-data |
Static ISO 3166-1 country data and ISO 639-1 language data with typed lookup functions, OTel instrumentation, and Zod schemas. |
@suaveplan/react-i18n |
React bindings for @suaveplan/i18n. Ships the <TranslationProvider>, twelve hooks, four headless components, the class-component HOC, the nine built-in loc… |