
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Go-based CLI tool that automatically translates and maintains your i18n JSON files using translation and AI providers, glossary definitions, and translation memory
Automated JSON i18n maintenance for developers
Dire (French for "to say", pronounced /diʁ/) is a Go-based CLI tool that automatically translates and maintains your i18n JSON files using translation and AI providers, glossary definitions, and translation memory
BYOK (Bring Your Own Key) - Use your own provider API keys for maximum control and cost transparency
--check flag--prune# Option 1: Install as project dependency
npm i dire
# Option 2: Install globally
npm i -g dire
# Option 3: Run without installing
npx dire
Initialize Configuration
dire init
This creates a .dire.toml file in your project root. Edit it to match your project structure. See CONFIGURATION.md for complete configuration reference.
Note: The .dire.toml config file is optional. You can configure everything via CLI flags (see Configuration Override Flags). However, the TOML file offers quality-of-life features like glossary management and multiple pre-configured providers for quick switching.
Set Up API Keys
See Supported Providers section below for setup details.
Note: Dire automatically loads environment variables from any .env* files in your current directory (e.g., .env, .env.local, .env.production).
Run Translation
dire
| Command | Description |
|---|---|
dire | Translate all missing keys in your i18n files |
dire --keys <key> | Translate specific key(s): dire --keys "auth.login,auth.register" |
dire --sourced | Apply only glossary and memory translations |
dire --stub | Create placeholder translations (empty strings) |
dire --prune | Remove orphaned keys from non-reference locales |
dire --check | Lint translation completeness for CI/CD |
See COMMANDS.md for the complete command reference.
Set your API key in any .env* file in your project root:
| Provider | Environment Variable |
|---|---|
| DeepL | DIRE_DEEPL_API_KEY |
| Google Translate | DIRE_GOOGLE_API_KEY |
| Azure AI Translator | DIRE_AZURE_API_KEY |
| OpenAI | DIRE_OPENAI_API_KEY |
| Claude | DIRE_CLAUDE_API_KEY |
| Gemini | DIRE_GEMINI_API_KEY |
| Mistral | DIRE_MISTRAL_API_KEY |
| DeepSeek | DIRE_DEEPSEEK_API_KEY |
Example .env file:
DIRE_CLAUDE_API_KEY=sk-ant-api03-your-key-here
All rights reserved. This software is provided for use only and may not be copied, modified, or redistributed without explicit permission.
FAQs
Go-based CLI tool that automatically translates and maintains your i18n JSON files using translation and AI providers, glossary definitions, and translation memory
The npm package dire receives a total of 550 weekly downloads. As such, dire popularity was classified as not popular.
We found that dire demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.