Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>EH i18nNew to Visual Studio Code? Get it now.
EH i18n

EH i18n

Quang.D.Le

|
8 installs
| (0) | Free
Extension facilitating the creation of locale keys
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

EH i18n - VS Code Create Locale Key

A VS Code extension for creating a new key in a JSON locale file and replacing selected text with a reference to that key.

Features

  • Creates a new key in a JSON locale file
  • Replaces selected text with a reference to that key
  • Supports custom locale file path

Usage

  1. Select the text you want to create a key for
  2. Open the command palette (Ctrl + Shift + P or Cmd + Shift + P)
  3. Search for EH i18n - Create Locale Key and select it
  4. Enter a unique key for the selected text when prompted
  5. The selected text will be replaced with a reference to the new key

edit

  1. For nested keys, separate the keys with -- (e.g. parent--child--grandchild)

nested

  1. If your key exists, it throw error!

ok

Configuration

The extension can be configured with the following settings:

  • createLocaleKey.localeFilePath: The file path to the JSON locale file (default: locales/en.json)
  • createLocaleKey.withBrackets: Whether to format the replacement reference with brackets (default: false)
image

Known Issues

  • None at the moment.

Release Notes

1.0.0

Initial release of Create Locale Key

Contributing

Pull requests and bug reports are welcome on GitHub.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft