sonenta snapshot
Generate a build-time translations snapshot for @sonenta/react-i18next initialBundles (offline-first fallback). Fetches the PUBLIC CDN bundles (exactly what the SDK loads at runtime) and assembles Record<locale, Record<namespace, tree>>. Emits a .ts module (default) or .json.
sonenta snapshot [options]Options
Section titled “Options”| Flag | Description | default |
|---|---|---|
--language <code> | Restrict to a single language code | - |
--namespace <slug> | Restrict to a single namespace slug | - |
--version <slug> | Version slug (default: the configured version_slug) | - |
--format <fmt> | ts | json (default: ts) | "ts" |
--cdn <base> | CDN base URL | "https://cdn.sonenta.com" |
--out <file> | Write to a file instead of stdout | - |
--host <url> | Override host (used to discover languages/namespaces) | - |