i18n all可用配置
{
"git.confirmSync": false,
"git.autofetch": true,
"i18n-ally.localesPaths": ["apps/admin/src/locales/langs"], // 翻译文件路径 (自动生成) 相对于项目根目录的语言环境目录路径
// 如下须要手动配置
"i18n-ally.keystyle": "nested", // 翻译路径格式 (翻译后变量格式 nested:嵌套式 flat:扁平式)
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"i18n-ally.enabledParsers": ["ts"], // 翻译文件可允许的格式,默认json
"i18n-ally.sourceLanguage": "zh-cn", // 翻译源语言 (源文件) 根据此语言文件翻译其他语言文件的变量和内容
"i18n-ally.displayLanguage": "zh-cn", // 显示语言 (显示文件/翻译文件)
"i18n-ally.translate.engines": ["baidu"], // 翻译器
"i18n-ally.extract.keygenStyle": "camelCase", // 翻译字段命名样式采用驼峰
"i18n-ally.enabledFrameworks": [
"vue"
],
"i18n-ally.editor.preferEditor": true,
"i18n-ally.extract.keyMaxLength": 20,
"i18n-ally.translate.baidu.appid": "20231011001843537",
"i18n-ally.translate.baidu.apiSecret": "bopk_MGpsppbFkP6XwgY",
"i18n-ally.extract.autoDetect": true,
"i18n-ally.refactor.templates": [
{
"source": "html-attribute",
"templates": [
"i18n.t('{key}'{args})",
"t('{key}'{args})"
],
"include": [
"src/**/*.{vue,ts,js}",
"index.vue"
],
"exclude": [
"src/config/**"
]
}
]
}