kapi tm-leverage
kapi tm-leverage [files...]TM Leverage
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 frFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --concurrency, -j | int | 0 | max parallel files (0 = auto) |
| --downgrade-identical-best-matches | bool | false | Reduce score by 1%% when multiple identical exact matches are returned |
| --encoding, -e | string | UTF-8 | input file encoding |
| --fail-on-unknown | bool | false | exit with error if any file cannot be processed (default: skip with warning) |
| --fill-if-target-is-empty | bool | false | Fill the target only when it has no existing content |
| --fill-target | bool | true | Copy the best translation candidate into the target content |
| --fill-target-threshold | int | 95 | Minimum match score required to fill the target |
| --format, -f | string | override input format detection | |
| --fuzzy-threshold | int | 70 | Minimum score for fuzzy matches (0-100) |
| --json | bool | false | output results as JSON |
| --make-tmx | bool | false | Create a TMX file with all leveraged matches |
| --map, -m | stringArray | map glob pattern to format (e.g. '*.docx=okf_openxml:test') | |
| --no-query-threshold | int | 101 | Skip TM query if existing candidate scores at or above this value (101 = always query) |
| --no-warn | bool | false | suppress warnings for skipped files |
| --output, -o | string | output path template (variables: {dir}, {name}, {ext}, {lang}) | |
| --output-dir | string | write outputs under DIR/{lang}/ (default: beside the input, mirroring its locale layout) | |
| --pack | bool | false | when transforming a .klz, also eject the result to the .klz (auto-pack) |
| --parallel-blocks | int | 0 | fan out block processing across N goroutines (0 = off) |
| --progress, -p | bool | false | show progress bar |
| --source-lang | string | en | source language (e.g. en, en-US) |
| --strict | bool | false | alias for --fail-on-unknown |
| --target-lang | string | target language (e.g. fr, de-DE) | |
| --tm | string | named TM or path to a .db (defaults to the project TM at .kapi/tm.db) | |
| --tmx-path | string | File path for the generated TMX document | |
| --trace | string | write flow trace JSON to file (for flow visualization) |
More examples
kapi tm-leverage messages.json --target-lang de← Back to the Command Reference