@sonenta/react-i18next 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![MIT licensed](https://img.shields.io/npm/l/@sonenta/react-i18next.svg)](./LICENSE)
4
4
 
5
- The React SDK for [Sonenta](https://verbumia.ca). Resolve translations from
5
+ The React SDK for [Sonenta](https://sonenta.com). Resolve translations from
6
6
  the Sonenta CDN, fall back gracefully when a key is missing, and stream those
7
7
  missing keys back to your dashboard in real time so the team can fill them
8
8
  without redeploying.
@@ -94,8 +94,8 @@ interface SonentaConfig {
94
94
  fallbackLng?: string | string[]; // fallback locale(s); variants also fall back to their base (fr-CA → fr)
95
95
  namespaces?: string[]; // default ['common']
96
96
  defaultNS?: string; // alias: default namespace for single-ns apps
97
- apiBase?: string; // default 'https://api.verbumia.dev'
98
- cdnBase?: string; // default 'https://cdn.verbumia.ca'
97
+ apiBase?: string; // default 'https://api.sonenta.com'
98
+ cdnBase?: string; // default 'https://cdn.sonenta.com'
99
99
  languageCatalog?: LanguageMeta[]; // embed the language catalog (offline/SSR/RN); powers dir()/nativeName()
100
100
  disableLanguageCatalog?: boolean; // skip the public GET /v1/languages fetch
101
101
  version?: string; // version slug, default 'main' (in cache keys)
@@ -412,7 +412,7 @@ import { sonentaRealtime } from "@sonenta/realtime/react";
412
412
  {...config}
413
413
  env="dev"
414
414
  plugins={[
415
- sonentaRealtime({ wsUrl: "wss://rt.verbumia.ca/connection/websocket" }),
415
+ sonentaRealtime({ wsUrl: "wss://rt.sonenta.dev/connection/websocket" }),
416
416
  ]}
417
417
  >
418
418
  <App />
@@ -455,7 +455,7 @@ from the snapshot do not fire "missing" reports until a real fetch confirms.
455
455
  - **CLI (recommended):** `verbumia snapshot` (from `@verbumia/cli`) fetches the
456
456
  current published bundles and writes the JSON module.
457
457
  - **Manual:** fetch each
458
- `https://cdn.verbumia.ca/p/<project>/<version>/latest/<locale>/<ns>.json` and
458
+ `https://cdn.sonenta.com/p/<project>/<version>/latest/<locale>/<ns>.json` and
459
459
  assemble them into `{ [locale]: { [namespace]: <tree> } }`, then import it.
460
460
 
461
461
  ## Surface variants
package/dist/index.cjs CHANGED
@@ -236,7 +236,7 @@ function flattenPlurals(tree, locale) {
236
236
 
237
237
  // src/transport.ts
238
238
  var SDK_LIB = "@sonenta/react-i18next";
239
- var SDK_VER = true ? "2.0.1" : "0.0.0-dev";
239
+ var SDK_VER = true ? "2.1.0" : "0.0.0-dev";
240
240
  function defaultTransport(opts) {
241
241
  return async (batch) => {
242
242
  if (!batch.length) return;
@@ -390,8 +390,8 @@ var KeyRegistry = class {
390
390
  var keyRegistry = new KeyRegistry();
391
391
 
392
392
  // src/i18n.ts
393
- var DEFAULT_API_BASE = "https://api.verbumia.dev";
394
- var DEFAULT_CDN_BASE = "https://cdn.verbumia.ca";
393
+ var DEFAULT_API_BASE = "https://api.sonenta.com";
394
+ var DEFAULT_CDN_BASE = "https://cdn.sonenta.com";
395
395
  var DEFAULT_FLUSH_MS = 5e3;
396
396
  var DEFAULT_BATCH = 50;
397
397
  var DEFAULT_BUFFER = 200;