Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>i18n-AINew to Visual Studio Code? Get it now.
i18n-AI

i18n-AI

nijiahong

|
50 installs
| (2) | Free
使用AI来高效的翻译和写入,让你的翻译效率更加便捷;Leverage AI for efficient translation and writing, streamlining your translation process and boosting efficiency.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

i18n - AI 插件使用说明

一、简介

欢迎使用 vscode i18n - AI 插件!本插件专为 JavaScript 国际化一键翻译而设计,能自动将指定内容翻译成目标语言并写入目标文件,极大节省开发流程。

安装链接:https://marketplace.visualstudio.com/items?itemName=nijiahong.i18n-ai

二、前置条件

  1. 配置基础信息:使用前需配置 i18n-ai.baseLangPath 和 i18n-ai.translateLang,配置过程中有相关指引可供参考。i18n-ai.baseLangPath推荐使用对象格式,如 {"你好": "你好", "文案": "这是一个很长很长的文案!"}。
  2. 文件生成与修改:首次配置时,插件会在项目根目录自动生成 t.json 文件。若需修改文件的绝对目录定位,修改后要重新配置 i18n-ai.baseLangPath。
  3. 工作区设置建议:建议配置工作区设置,这样每个项目可灵活配置不同路径。

三、使用方法

  1. 按下 cmd + shift + p 组合键,打开命令面板。
  2. 在命令面板中输入 AI to translate,并选择该命令。
  3. 耐心等待插件自动完成翻译。
  4. 写入只会写入新数据,不会对原有数据信息破坏!

Instruction Manual for i18n - AI Plugin

I. Introduction

Welcome to use the vscode i18n - AI plugin! This plugin is specifically designed for one-click translation of JavaScript internationalization. It can automatically translate the specified content into the target language and write it into the target file, greatly saving the development process.

Installation Link: https://marketplace.visualstudio.com/items?itemName=nijiahong.i18n-ai

II. Prerequisites

  1. Configure Basic Information: Before using it, you need to configure i18n-ai.baseLangPath and i18n-ai.translateLang. There are relevant guidelines for reference during the configuration process. It is recommended to use the object format for i18n-ai.baseLangPath, such as {"你好": "你好", "文案": "这是一个很长很长的文案!"}.
  2. File Generation and Modification: When configuring for the first time, the plugin will automatically generate a t.json file in the root directory of the project. If you need to modify the absolute directory location of the file, you need to reconfigure i18n-ai.baseLangPath after the modification.
  3. Workspace Settings Recommendation: It is recommended to configure the workspace settings so that each project can flexibly configure different paths.

III. Usage Method

  1. Press the cmd + shift + p key combination to open the command palette.
  2. Enter AI to translate in the command palette and select this command.
  3. Wait patiently for the plugin to complete the translation automatically.
  4. The writing will only write new data and will not damage the original data information!
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft