translate-kit

Dependencies

Runtime and build dependencies and their purpose.

translate-kit is not a runtime dependency of your project. It generates standard code and JSON files. If you remove it, your app keeps working exactly the same.

Runtime Dependencies

These are the packages translate-kit uses internally when you run its commands:

DependencyPurpose
ai (Vercel AI SDK)generateObject with Zod schemas for all AI calls (key generation and translation)
@babel/parserParse JSX/TSX source code into AST
@babel/traverseWalk and analyze the AST to find translatable strings
@babel/generatorGenerate modified source code from the transformed AST
@babel/typesAST node builders and type guards
c12Config file loading — supports .ts, .js, .json formats
zodConfig validation and AI response schemas
cittyCLI command framework with subcommands and flags
@clack/promptsInteractive terminal prompts for the init wizard
picocolorsTerminal color output
dotenvEnvironment variable loading (for API keys)
tinyglobbyFile pattern matching for the scanner's include/exclude globs
p-limitConcurrency limiter for parallel AI batch processing
tokenlensToken counting for AI batch size estimation

Peer Dependencies

DependencyPurpose
ai (>=4.0.0)Required — provides the AI model interface

What Gets Installed in Your Project

translate-kit generates code that depends on:

  • Keys mode: next-intl — installed automatically by the init wizard
  • Inline mode: no external runtime dependency — the generated <T> component is self-contained

The AI provider SDK (e.g. @ai-sdk/openai) is the only additional dependency you install alongside translate-kit itself.