From eeb72b24b512f915a2e7029ea98f6399ecf9dd94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 30 Oct 2025 10:27:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20=E6=9B=B4=E6=96=B0=20i18n-ally=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3074db9..859c101 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,10 +21,17 @@ }, "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: /^(?[\w-_]+)(?:.*\/|^).*\.(?json|ya?ml|json5)$/ + "i18n-ally.pathMatcher": "{locale}.json", + "i18n-ally.enabledParsers": ["json"], + "i18n-ally.keystyle": "nested", "i18n-ally.sourceLanguage": "zh-CN", // 翻译源语言 (源文件) 根据此语言文件翻译其他语言文件的变量和内容 "i18n-ally.displayLanguage": "zh-CN", // 显示语言 (显示文件/翻译文件) - "i18n-ally.keystyle": "nested", + // <<<<< // https://github.com/copilot/share/8a1a019a-0180-80e7-8141-a40be02c4006 // "iconify.customCollectionJsonPaths": ["https://example.com/my-icons.json", "./local/icons.json"],