What is i18nEase used for? 1. Automatically extract localization files from the source code for you 2. Use gpt4 to translate all the localization files with one command.
Why did I develop this plugin?
Previously, when developing international software, I encountered some problems, such as:
Whenever I wanted to add a new piece of text, I had to open multiple files for editing. I needed to use t('title') in the code, and then add the matching translation in both zh-CN.json and en-US.json files respectively. Such frequent switching between different files greatly reduced my work efficiency.
On the other hand, if I was to use machine translation, I had to copy and paste the original text into chatgpt, then move the translated text word for word back into my code. This operation was not only tedious but also prone to errors.
Later, while reading the vscode source code, I discovered their solution. They use localize('key',"Default Text") in the code and then automatically generate all language files through a script.
So, taking this idea, I developed a vscode plugin called i18nEase that solves the two problems mentioned above.
HamsterBase Highlighter
HamsterBase Highlighter