Skip to content

sonenta export

Export translations as i18next JSON (default) or XLIFF (--format xliff). JSON is flat dot-notation by default (--nested for nested trees). Writes //.json with --out, otherwise prints { locale: { namespace: tree } } to stdout.

Fenêtre de terminal
sonenta export [options]
FlagDescriptiondefault
--language <code>Restrict to a single language code-
--namespace <slug>Restrict to a single namespace slug-
--nestedEmit nested JSON instead of flat dot-notationfalse
--out <dir>Write files instead of printing to stdout-
--format <fmt>json | xliff | csv (default json)"json"
--version <ver>XLIFF version for --format xliff: 1.2 | 2.0 | 2.1 (default 2.1)-
--lang <code>Alias for --language-
--source-language <code>XLIFF source language (default: the project source language)-
--include-statuses <list>XLIFF/CSV: comma-separated statuses (default: draft,translated,reviewed,approved)-
--delimiter <char>CSV delimiter (default: ,)-
--host <url>Override host (otherwise from config/credentials)-