Automatically convert selected text to a key in i18n. If the Chinese text does not exist, it will automatically write the key and text content into the corresponding i18n configuration file, and complete the target language translation.
自动转换选中文本为i18n中的key,如果中文不存在,则自动往对应的i18n配置文件中写入key和文本内容,并完成目标语言翻译。
This plugin requires that the i18n language file is in json format, for example:
language_zh.json:
{
"common":{
"name":"name",
"age":"age"
}
}
本插件要求i18n语言文件是json格式,例如
language_zh.json:
{
"common":{
"name":"名称",
"age":"年龄"
}
}
Select any text in the editor, use the shortcut key to complete the replacement. If the key does not exist, you need to input a new key.
在编辑器中选中任意文本,使用快捷键即可完成替换,如果key不存在,需要输入新的key