Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Translation Reference for i18n JSON FilesNew to Visual Studio Code? Get it now.
Translation Reference for i18n JSON Files

Translation Reference for i18n JSON Files

Travis Lawrence

|
56 installs
| (0) | Free
Quick lookup, search, and copy translation text nested in a json file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Translation Reference for i18n JSON Files

For translation json files that have a nested hiearchy.

Get Started

Use the settings to point to your translation .json file.

"translation-reference-for-i18n-json.jsonFilePath"

This path should be relative to your project. Example:

  {
    "translation-reference-for-i18n-json.jsonFilePath": "./myFiles/i18n/data.json"
  }
  • Note: after updating this setting VSCode should do a quick reload of your window to load the new settings file. If it does not reload, or you notice your JSON file doesn't seem to be be loaded you can manually reload your window through the command pallette (cmd/ctrl+Shift+P) and trigger "Reload Window".

Search by the translation string to find any components that text exists within.

alt text

Use the command prompt (Command+Shift+P) and use the "Translation search" function. Enter in a string you are searching for and the results will be provided with any components that have a translation string that match your query.

Hover over translation to display the translation text

alt text

Copy new translation references and search for references with your JSON file

alt text

Within the translation json file you can hover over a key to see the combined string of the parent keys. Copy this text with the "Copy text" button, and do a Find All search for components that reference this string.

Installing from VSIX

If you have the VSIX file you can install this by opening the "Extensions" panel in VSCode and choosing "Install from VSIX" from the sub-menu at the top of the sidebar.

alt text

Publishing/Updating

If personal access token (PAT) has expired then go get a new one: https://dev.azure.com/myUserName/_usersSettings/tokens

Then in the cli use vsce (use npx if package @vscode/vsce not installed locally) to package and then publish (also login if a new PAT is used). In this order: vsce login <publishName> (only if PAT is new) vsce package vsce publish

Then go verify your publisher page that the version was received: https://marketplace.visualstudio.com/manage/publishers/

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