Gå til hovedinnhold

kapi tm-leverage

kapi tm-leverage [files...]

TM Leverage

Commandtm-leverage
Grouptranslation
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 tm-leverage app.xliff --target-lang fr
Flags
FlagTypeDefaultDescription
--concurrency, -jint0max parallel files (0 = auto)
--downgrade-identical-best-matchesboolfalseReduce score by 1%% when multiple identical exact matches are returned
--encoding, -estringUTF-8input file encoding
--fail-on-unknownboolfalseexit with error if any file cannot be processed (default: skip with warning)
--fill-if-target-is-emptyboolfalseFill the target only when it has no existing content
--fill-targetbooltrueCopy the best translation candidate into the target content
--fill-target-thresholdint95Minimum match score required to fill the target
--format, -fstringoverride input format detection
--fuzzy-thresholdint70Minimum score for fuzzy matches (0-100)
--jsonboolfalseoutput results as JSON
--make-tmxboolfalseCreate a TMX file with all leveraged matches
--map, -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--no-query-thresholdint101Skip TM query if existing candidate scores at or above this value (101 = always query)
--no-warnboolfalsesuppress warnings for skipped files
--output, -ostringoutput path template (variables: {dir}, {name}, {ext}, {lang})
--output-dirstringwrite outputs under DIR/{lang}/ (default: beside the input, mirroring its locale layout)
--packboolfalsewhen transforming a .klz, also eject the result to the .klz (auto-pack)
--parallel-blocksint0fan out block processing across N goroutines (0 = off)
--progress, -pboolfalseshow progress bar
--source-langstringensource language (e.g. en, en-US)
--strictboolfalsealias for --fail-on-unknown
--target-langstringtarget language (e.g. fr, de-DE)
--tmstringnamed TM or path to a .db (defaults to the project TM at .kapi/tm.db)
--tmx-pathstringFile path for the generated TMX document
--tracestringwrite flow trace JSON to file (for flow visualization)
More examples
kapi tm-leverage messages.json --target-lang de

← Back to the Command Reference