Getting Started with Tradux


Starting with Tradux is incredibly simple. First, you need to install it in your project using your preferred package manager. We recommend `pnpm` or `npm`.

Run `npm install tradux` or `pnpm install tradux`. Once installed, you can initialize the interactive setup wizard by running `npx tradux init`.

The wizard will guide you through selecting your base language, translation folder (usually `./i18n`), and your preferred AI provider (like OpenRouter or OpenAI).

After setup, make sure you add your API key to your `.env` file (for example, `OPENROUTER_API_KEY=sk-or-...`).

Finally, run `npx tradux -t es,pt,fr` to instantly generate Spanish, Portuguese, and French translations based on your default JSON file!