Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>do-easy-i18nNew to Visual Studio Code? Get it now.
do-easy-i18n

do-easy-i18n

Do Easy

|
4 installs
| (1) | Free
Easy i18n management for your projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

do-easy-i18n

Do easy i18n

A command-line tool and vscode extension for easy internationalization (i18n) management in your projects. Seamlessly initialize, compile, and translate your application messages.

Table of Contents

  • Features
  • Installation
    • CLI
    • VSCode Extension
  • Usage
  • Configuration
  • License

Features

CLI

  • 🚀 Simple Setup: Initialize a new i18n project with a single command
  • 🔄 Auto-compilation: Watch for changes and recompile automatically
  • 🌐 AI Translation: Automatically translate missing strings with DeepL integration
  • 🧩 TypeScript Support: Built with and for TypeScript projects

VSCode Extension

  • 👁️ Inline Visualization: See translations directly in your code with inline decorations
  • 🔍 Quick Editing: Edit or delete translations with a single click
  • 🔄 Extract Text: Select text and extract it to a translation key
  • 🌐 AI Translation: Automatically translate missing strings with DeepL integration
  • 🌍 Language Switching: Easily switch between languages to view different translations
  • 🚨 Missing Translation Alerts: Visual indicators for missing translations

Installation

CLI

# Install globally
npm install -g do-easy-i18n

# Or use with npx
npx do-easy-i18n <command>

VSCode Extension

The VSCode extension is available in the VSCode Marketplace.

Usage (CLI)

Initialize a new project (CLI)

do-easy-i18n init

This creates:

  • A do-easy-i18n.json configuration file
  • A messages directory with an empty en.json file

Compile messages (CLI)

# Basic compilation
do-easy-i18n compile

# With custom config and output paths
do-easy-i18n compile --config ./custom-config.json --output ./custom-output

# Watch mode for automatic recompilation
do-easy-i18n compile --watch

Translate missing messages (CLI)

# Translate using default configuration
do-easy-i18n translate

# With custom config path
do-easy-i18n translate --config ./custom-config.json

Configuration (CLI)

The configuration file (do-easy-i18n.json) has the following structure:

{
  "languages": ["en", "fr", "es"],
  "defaultLanguage": "en",
  "deepL": {
    "host": "https://api-free.deepl.com",
    "apiKey": "your-deepl-api-key"
  }
}
Property Description
languages Array of language codes to support
defaultLanguage The source language for translations
deepL DeepL configuration (optional)
deepL.host DeepL API host (free or pro)
deepL.apiKey Your DeepL API key for automatic translations

Usage (VSCode Extension)

  1. Open your project folder.

  2. Ensure that you have a do-easy-i18n.json configuration file in your project.

  3. Import a translation using the pattern import * as.

  4. Use a translation and see the magic happen.

Decoration example

You can switch the decoration language in the status bar.

Switch decoration language

Decoration colors

  • Green color: Translation is present in all languages in the do-easy-i18n.json languages array.

Green color example

  • Yellow color: Translation is present in some languages in the do-easy-i18n.json languages array.

Yellow color example

  • Red color: Translation is missing in all languages in the do-easy-i18n.json languages array.

Red color example

Extension features

With the extension, you can:

  • Add a translation key to the current file:

Code actions example

  • Edit a translation key:

Code actions example

  • Delete a translation key:

Code actions example

  • Translate a missing translation key using DeepL:

Code actions example

  • The extension will use the defaultLanguage to translate missing translations. If the default language has no source translation, the extension will fallback to the first language in the languages array.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft