JSON AI Translator
A VS Code extension that translates JSON files into multiple languages using AI language models.
Features
- Translate JSON files to multiple languages at once
- Supports comma-separated language codes (e.g.,
fr-FR, de-DE, es-ES)
- Automatic file naming with language codes
- Handles file conflicts with user prompts
- Uses VS Code's built-in language models for translation
Usage
- Open a JSON file in VS Code
- Run the command "Translate JSON File" from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
- Enter comma-separated language codes when prompted
- The extension will create translated files in the same directory as the source file
Installation
To install dependencies:
npm install
To compile:
npm run compile
To run in development mode:
- Press F5 to open a new Extension Development Host window
- Open a JSON file
- Run the "Translate JSON File" command
Requirements
- VS Code 1.85.0 or higher
- Access to VS Code language models (Copilot or similar)
License
MIT
| |