Skip to content

sonenta import

Import i18next JSON file(s) into Sonenta in ONE call: creates missing keys and upserts translations (idempotent). Accepts nested or flat JSON. Language/namespace are inferred from the path (/.json) or forced with --language / --namespace.

Fenêtre de terminal
sonenta import [options] <files...>
NameDescription
filesi18next JSON file(s), e.g. locales/fr/common.json or fr.json
FlagDescriptiondefault
--format <fmt>json | xliff | csv (default json)"json"
--language <code>Force the language code for every file-
--namespace <slug>Force the namespace slug for every file-
--status <status>draft | translated (default: translated)-
--version <slug>Target version slug (default: production version)-
--strictXLIFF/CSV: refuse the whole import if any unit/row has an errorfalse
--create-missingXLIFF/CSV: create keys that don't exist (default: report-only)false
--delimiter <char>CSV delimiter (default: ,)-
--dry-runPrint what would be imported without sendingfalse
--host <url>Override host (otherwise from config/credentials)-