Gå til hovedinnhold

kapi google-translate

kapi google-translate [files...]

Translate content using Google Translate

Commandgoogle-translate
Grouptranslation
Try it (demo)

Demo mode — illustrative output from a built-in stub, not a real model. Install the CLI to run with your own API key.

kapi google-translate
Flags
FlagTypeDefaultDescription
--api-keystringAPI key for the MT provider
--concurrency, -jint0max parallel files (0 = auto)
--credentialstringsaved credential name to use (see 'kapi credentials list')
--emailstringAccount email for higher rate limits (mymemory)
--encoding, -estringUTF-8input file encoding
--fail-on-unknownboolfalseexit with error if any file cannot be processed (default: skip with warning)
--format, -fstringoverride input format detection
--jsonboolfalseoutput results as JSON
--map, -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--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
--project-idstringGoogle Cloud project ID (google)
--regionstringAzure region (microsoft)
--source-langstringensource language (e.g. en, en-US)
--strictboolfalsealias for --fail-on-unknown
--subscription-keystringAzure subscription key (microsoft)
--target-langstringtarget language (e.g. fr, de-DE)
--tracestringwrite flow trace JSON to file (for flow visualization)

← Back to the Command Reference