Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON to Enum (i18n)New to Visual Studio Code? Get it now.
JSON to Enum (i18n)

JSON to Enum (i18n)

Paul Halliday

|
324 installs
| (0) | Free
Converts json keys to Enum key-key pairs. Used for i18n references
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON to Enum

How to use

Take a JSON object like so:

{
 "my_item: {
   "one": "value",
   "two": "value",
   "three": "value",
 }
}

Highlight from the start of my_item to the end and hit CMD/CTRL + P: > Create Enum from JSON

Changelog

1.2.3

Added language selector (Dart/TypeScript)

1.1.0

Now uses object keyName.key instead of value.

1.0.1

Updated README.md

1.0.0

Supports TypeScript

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