Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>translateNew to Visual Studio Code? Get it now.
translate

translate

leizl

|
4,813 installs
| (1) | Free
多语言翻译
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

多语言翻译插件,谷歌翻译api

Current Version Install Count Open Issues

Quick start

  • Run your command from the command palette by pressing (Ctrl+Shift+P or Cmd+Shift+P on Mac) and typing Translate.

适用场景,多语言文件(ts、js、commonJs、json)

json 文件

  • 源文件
{
  "zh": {
    "title1": "亥下歌",
    "t1": "力拔山兮气盖世",
    "t2": "时不时兮骓不适",
    "t3": "骓不逝兮可奈何",
    "t4": "虞兮虞兮奈若何",
    "t5": "山有木兮木有枝,心悦君兮君不知",
    "t6": "沅有芷兮澧有兰,思公子兮未敢言"
  }
}
  • 翻译后
{
  "zh": {
    "title1": "亥下歌",
    "t1": "力拔山兮气盖世",
    "t2": "时不时兮骓不适",
    "t3": "骓不逝兮可奈何",
    "t4": "虞兮虞兮奈若何",
    "t5": "山有木兮木有枝,心悦君兮君不知",
    "t6": "沅有芷兮澧有兰,思公子兮未敢言"
  },
  "en": {
    "title1": "Haixiage",
    "t1": "Reach out to the world",
    "t2": "Feel unwell from time to time",
    "t3": "It's not going to die",
    "t4": "Yu Xi Yu Xi Naruo He",
    "t5": "The mountains have trees and trees have branches, but the heart is happy and you don’t know",
    "t6": "Yuan has Zhixi, Li has orchids, but Young Master Si dare not say anything"
  }
}

ts、js文件

  • 源文件
export default {
  "zh": {
    "title1": "凤求凰",
    "t1": "有一美人兮,见之不忘。",
    "t2": "一日不见兮,思之如狂。",
    "t3": "凤飞翱翔兮,四海求凰。",
    "t4": "无奈佳人兮,不在东墙。"
  }
};
  • 翻译后
export default {
  "zh": {
    "title1": "凤求凰",
    "t1": "有一美人兮,见之不忘。",
    "t2": "一日不见兮,思之如狂。",
    "t3": "凤飞翱翔兮,四海求凰。",
    "t4": "无奈佳人兮,不在东墙。"
  },
  "en": {
    "title1": "Feng Qiuhuang",
    "t1": "There is a beauty, and I will never forget it.",
    "t2": "If you don't see Xi in a day, you think like crazy.",
    "t3": "Feng Fei soars, seeking phoenix from all corners of the world.",
    "t4": "Helpless beauty is not in the east wall."
  }
};

Contribution

https://github.com/leizelong/translate

Issues 欢迎大家提出改进意见。

https://github.com/leizelong/translate/issues

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