Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ngx-translatorexNew to Visual Studio Code? Get it now.
ngx-translatorex

ngx-translatorex

Marcin Kuryło

|
61 installs
| (0) | Free
Translate manager for ngx translate Angular library
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ngx-translatorex

Extension ngx-translatorex is a vscode extension designed to facilitate translations in Angular projects.

Features

  1. Tooltips with translation value.
  2. Intellisense completions.
  3. Autogenerated keys in scope mode.
  4. Support for .html and .ts files (support for component templates in .ts and for HTML element attributes coming soon).
  5. Support for translation params in .html.
  6. Params rename feature.
  7. Translations json sort.

Extension Settings

This extension contributes the following settings:

  • ngx-translatorex.mode: Mode in which extension works - can be key or scope. Default: key
  • ngx-translatorex.language: Main i18n file (e.g. en): Default: en
  • ngx-translatorex.path: Full path or pattern to main i18n folder. Default: **/assets/i18n/

Commands

  • ngx-translatorex.setLanguage: Set main i18n .json file
  • ngx-translatorex.setPath: Set path to i18n folder
  • ngx-translatorex.setMode: Set extension mode
  • ngx-translatorex.addNewTranslation: Add translation for selected text (ctrl+t/cmd+t)

How to add new key?

  1. Select text node
  2. Press ctrl+t or cmd+t and enter your key (scope in scope mode).

Scope mode creates a key basing on selected text and given scope. Example: scope label with selection My text will result in label.my_text: "My text". If user does not want autogenerated key in some cases in this mode, it's possible to it by putting . at the end of entered scope. Example: label.renamed. + My text = label.renamed: "My text".

Requirements

  • Opened Angular project with at least 1 i18n .json file.

Release Notes

0.0.1

Preview release of ngx-translatorex

0.0.2

Fix quotation marks handling


Enjoy!

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