Gå til hovedinnhold

kapi exec recycle

kapi recycle [files...]

Resirkuler

Commandexec recycle
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi exec recycle app.xliff --target-lang fr
Flags
FlagTypeDefaultDescription
--concurrency , -jint0max parallel files (0 = auto)
--downgrade-identical-best-matches boolfalseReduce score by 1%% when multiple identical exact matches are returned
--encoding , -estringinput file encoding
--fail-on-unknown boolfalseexit with error if any file cannot be processed (default: skip with warning)
--fill-if-target-is-empty boolfalseFill the target only when it has no existing content
--fill-target booltrueCopy the best translation candidate into the target content
--fill-target-threshold int95Minimum match score required to fill the target (100 = exact only)
--format , -fstringoverride input format detection
--fuzzy-threshold int70Minimum score for a match; the fuzzy path below 100 is retiring
--json boolfalseoutput results as JSON
--make-tmx boolfalseCreate a TMX file with all leveraged matches
--map , -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--memory stringnamed memory or path to a .db (defaults to the project content memory)
--no-query-threshold int101Skip content-memory query if existing candidate scores at or above this value (101 = always query)
--no-warn boolfalsesuppress warnings for skipped files
--output , -ostringoutput path template (variables: {dir}, {name}, {ext}, {lang})
--output-dir stringwrite outputs under DIR/{lang}/ (default: beside the input, mirroring its locale layout)
--pack boolfalsewhen transforming a .kpz, also eject the result to the .kpz (auto-pack)
--parallel-blocks int0fan out block processing across N goroutines (0 = off)
--progress , -pboolfalseshow progress bar
--source-lang stringsource language (e.g. en, en-US; defaults to the project's source_language, else en)
--strict boolfalsealias for --fail-on-unknown
--target-lang stringtarget language (e.g. fr, de-DE)
--tmx-path stringFile path for the generated TMX document
--trace stringwrite flow trace JSON to file (for flow visualization)
More examples
kapi exec recycle messages.json --target-lang de

← Back to the Command Reference