feat(i18n): 更新 i18n-ally 配置
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 3m50s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m19s

This commit is contained in:
严浩
2025-10-30 10:27:29 +08:00
parent 68e320637e
commit eeb72b24b5

11
.vscode/settings.json vendored
View File

@@ -21,10 +21,17 @@
}, },
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"i18n-ally.localesPaths": ["src/locales"], // >>>>>
"i18n-ally.namespace": false /* @intlify/unplugin-vue-i18n */,
"i18n-ally.localesPaths": ["src/locales/demo", "src/locales"],
// https://github.com/lokalise/i18n-ally/wiki/Path-Matcher
// 默认: 🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)(?:.*\/|^).*\.(?<ext>json|ya?ml|json5)$/
"i18n-ally.pathMatcher": "{locale}.json",
"i18n-ally.enabledParsers": ["json"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sourceLanguage": "zh-CN", // 翻译源语言 (源文件) 根据此语言文件翻译其他语言文件的变量和内容 "i18n-ally.sourceLanguage": "zh-CN", // 翻译源语言 (源文件) 根据此语言文件翻译其他语言文件的变量和内容
"i18n-ally.displayLanguage": "zh-CN", // 显示语言 (显示文件/翻译文件) "i18n-ally.displayLanguage": "zh-CN", // 显示语言 (显示文件/翻译文件)
"i18n-ally.keystyle": "nested", // <<<<<
// https://github.com/copilot/share/8a1a019a-0180-80e7-8141-a40be02c4006 // https://github.com/copilot/share/8a1a019a-0180-80e7-8141-a40be02c4006
// "iconify.customCollectionJsonPaths": ["https://example.com/my-icons.json", "./local/icons.json"], // "iconify.customCollectionJsonPaths": ["https://example.com/my-icons.json", "./local/icons.json"],