Gå til hovedinnhold

kapi pseudo-translate

kapi pseudo-translate [files...]

Kjør den innebygde pseudo-oversettelsesflyten: utvid hver streng med lokaltilpassede aksenter og lengdefylling slik at avkutting, sammenkobling og hardkodede-streng-feil avdekkes før noen virkelig oversettelse kjøpes. Kjører heldig offline — ingen AI-leverandør eller nøkler kreves.

Bruk det som en forhåndssjekk; når grensesnittet holder, produserer 'kapi translate' (ad hoc) eller 'kapi up' (prosjekt) de virkelige oversettelsene.

Commandpseudo-translate
Grouptranslate
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 pseudo-translate messages.json
Flags
FlagTypeDefaultDescription
--api-key stringAPI key for the AI provider
--batching stringhow many blocks share one LLM call: auto (default), single
--concurrency , -jint0number of files to process at once (0 = auto)
--context stringwhat the model is told about a block besides the block: none, key (default), neighbours
--credential stringsaved credential name to use (see 'kapi credentials list')
--encoding , -estringinput file encoding
--explain boolfalseprint the resolved source → sink bindings and exit without running
--fail-on-unknown boolfalseexit with error if any file cannot be processed (default: skip with a warning)
--format , -fstringoverride input format detection
--input , -istringSliceinput file path(s); repeat for multiple files
--instruction stringextra guidance for the model while translating (e.g. "informal register; keep product names in English")
--memory stringnamed Memory for recycle flow (resolves from KAPI_HOME)
--model stringAI model name
--output , -ostringoutput path or template (e.g. ./out/{name}_{lang}.{ext})
--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 stringstream progress events to stderr as NDJSON (value: jsonl); events use the flow-run event vocabulary
--project , -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--provider stringanthropicAI provider (anthropic, openai, ollama)
--source-lang stringsource language (e.g. en, en-US; defaults to the project's source_language, else en)
--stats boolfalseinclude part/block counts in output
--strict boolfalsealias for --fail-on-unknown
--target-lang stringtarget language (e.g. fr, de-DE)
--termstore stringnamed terms store for term-lookup/enforce (resolves from KAPI_HOME)
--trace stringwrite flow trace JSON to file (for flow visualization)
More examples
kapi pseudo-translate src/locales/en.json -o src/locales/qps.json

← Back to the Command Reference