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.
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 {"你好": "你好", "文案": "这是一个很长很长的文案!"}.
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.
Workspace Settings Recommendation: It is recommended to configure the workspace settings so that each project can flexibly configure different paths.
III. Usage Method
Press the cmd + shift + p key combination to open the command palette.
Enter AI to translate in the command palette and select this command.
Wait patiently for the plugin to complete the translation automatically.
The writing will only write new data and will not damage the original data information!