Installation Guide
System Requirements
- VS Code 1.85.0 or higher
- Node.js 16+ (only needed for development)
Installation Methods
Method 1: VS Code Marketplace (Recommended)
- Open VS Code
- Press
Ctrl+Shift+X(Windows/Linux) orCmd+Shift+X(Mac) to open Extensions - Search for "ESLint Intl"
- Click the "Install" button
Method 2: Manual VSIX Installation
- Download the latest
.vsixfile from GitHub Releases - In VS Code:
- Press
Ctrl+Shift+Xto open Extensions - Click the
...menu in the top right - Select "Install from VSIX..."
- Select the downloaded
.vsixfile
- Press
Method 3: Command Line Installation
bash
# Install a specific version
code --install-extension eslint-intl-0.1.0.vsix
# Or install from Marketplace
code --install-extension mimo.eslint-intlFirst-time Configuration
After installation, you need to configure the following to use it:
1. Configure API Key
Important: ESLint Intl requires an OpenAI-compatible API Key to translate error messages.
Open VS Code Settings:
- Windows/Linux:
Ctrl+, - Mac:
Cmd+,
Search for eslintIntl.openai.apiKey and enter your API Key.
2. Configure API Settings (Optional)
If using a non-official OpenAI API, configure:
- eslintIntl.openai.baseUrl: API base URL
- eslintIntl.openai.model: Model name to use
3. Select Language
Search for eslintIntl.targetLanguage and select your target language.
Upgrading
Upgrade from Marketplace
VS Code will automatically check for updates. You can also manually upgrade:
- Open Extensions panel
- Search for "ESLint Intl"
- If an update is available, click the "Update" button
Version Upgrades
Upgrading to a new version doesn't require special steps; the new version automatically replaces the old one.
Note: Cache is preserved unless you manually clear it.
Uninstallation
Via UI
- Open Extensions panel (
Ctrl+Shift+X) - Search for "ESLint Intl"
- Click the gear icon
- Select "Uninstall"
Via Command Line
bash
code --uninstall-extension mimo.eslint-intlClear Data
When uninstalling, the following data is retained (optional deletion):
- Cached translations (VS Code globalState)
- Settings and configuration
To manually clear all data:
- Open Command Palette (
Ctrl+Shift+P) - Type "ESLint Intl: Clear Translation Cache"
- Press Enter to confirm
Troubleshooting
Extension Won't Load
- Check if VS Code version >= 1.85.0
- Try disabling and re-enabling the extension
- View output log:
ESLint Intl: Show Output Log
API Key Configuration Error
- Make sure API Key is correct and valid
- Check if Base URL is correct
- See API Configuration Guide
Translation Not Working
- Check if ESLint Intl is enabled:
eslintIntl.enabled = true - Confirm file has ESLint errors
- Check output log for detailed error information
Performance Issues
- Clear cache:
ESLint Intl: Clear Translation Cache - Check API response time
- See FAQ for performance optimization tips
Development Version Installation
To install the development version or build from source:
bash
# Clone repository
git clone https://github.com/RainSunMe/eslint-intl.git
cd eslint-intl
# Install dependencies
npm install
# Build VSIX file
npm install -g @vscode/vsce
vsce package
# Install local VSIX
code --install-extension eslint-intl-*.vsixNeed Help?
- 📖 Check FAQ
- 🐛 Submit an Issue
- 💬 Join the Discussion