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

hover-translate-i18n

zxhfighter

|
7 installs
| (0) | Free
translate i18n keys when mouse hover
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

translate when hover on text

Hover the mouse over the text to view the translation results of the text.

Prerequisites

Provide translation result files in json format. Currently, it supports setting Chinese and English translation result files.

For example, in the current project, there are zh.json and en.json files.

Assume that the Chinese text path address is: packages/i18n/zh-CN.json.

{
  "confirm": "确认",
  "key_1": "这是一段文案"
}

Assume that the English text path address is: packages/i18n/en.json.

{
  "confirm": "Confirm",
  "key_1": "This is some text"
}

Parameter configuration

i18nZhLocaleUri

The path address of the Chinese text, for example: packages/i18n/zh-CN.json.

i18nEnLocaleUri

The path address of the English text, for example: packages/i18n/en.json.

i18nKeyPrefix

The key prefix of the text. for example: key_. Filling in the key prefix of the text can improve the search speed. It is optional.

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