Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Translation HelperNew to Visual Studio Code? Get it now.
Translation Helper

Translation Helper

Tukczyns

|
3 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Translation Helper

A Visual Studio Code extension that makes it easy to add new translation keys directly from your code editor to your translation management backend.

Features

  • Add translation keys directly from selected text
    Highlight any text in your code, run the Add Translation Key command, and enter the translation key (e.g., common:hello).
    The extension will:

    1. Send the key and value to your configured API endpoint.
    2. Optionally replace the selected text with t("your:key").
  • Configurable API URL
    Set the translationHelper.apiUrl setting in your workspace or user settings to point to your local or remote API.

  • Namespace support
    Use namespaced keys like auth:login_title or common:hello.

  • Developer-friendly
    Works seamlessly with your existing i18n setup and type generation scripts.

Requirements

  • A backend API endpoint that accepts POST /translations/add-key with JSON body:
    {
      "key": "namespace:key",
      "value": "Default text"
    }
    
  • The endpoint should handle adding the key to your translation source (e.g., Google Sheets, database).

Extension Settings

This extension contributes the following settings:

  • translationHelper.apiUrl: Base URL for the translations API (default: http://localhost:3000)

Example .vscode/settings.json:

{
  "translationHelper.apiUrl": "http://localhost:3000"
}

Usage

  1. Select the text you want to translate in your code.
  2. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
  3. Run "Add Translation Key".
  4. Enter the translation key (e.g., common:hello).
  5. The extension will send the key and value to your API and replace the text with t("common:hello").

Known Issues

  • None at the moment. Please report any issues on the repository.

Release Notes

0.0.1

  • Initial release with:
    • Add translation key from selected text
    • Configurable API URL
    • Optional text replacement with t("key")

Enjoy!

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