Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TranslatorNew to Visual Studio Code? Get it now.
Translator

Translator

ThinkUp

|
556 installs
| (1) | Free
Exports selected text to configured translate file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Takes selected text and replace it with {{'VAR' | PIPE_NAME}} and exports it to configured file

Requirements

Translate Pipe must be present (any pipe that use a json file to retrieve key/value).

Extension Settings

File configuration can be createn on root folder named 'translate.conf' with attributes:

{ path: "src/assets/implementacion/i18n" // path to file relative to workspace's root, 
 default: "es.json" // default file name, 
 pipeName: "translate"   // pipe name,
 maxLength: 20 // max key length};

Validations

If selected text is longer than 'maxLength' chars, key will be truncated and appended with "_" and (total_lenght - maxLength). Example maxLength 20: 'this is 26 chars long text' will be changed to 'THIS_IS_26_CHARS_LON_6')

If key already present with a different name, an error will be prompt. If present with same key, no change will be made on the export file.

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