mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
chore: update i18n sync command and vscode settings
- Replace custom i18n sync script with i18next-cli sync command - Update json sorting setting to use biome formatter - Format i18n-ally config arrays for better readability
This commit is contained in:
parent
534459dd13
commit
66e48dbba9
22
.vscode/settings.json
vendored
22
.vscode/settings.json
vendored
@ -28,7 +28,7 @@
|
||||
"source.fixAll.eslint": "explicit",
|
||||
"source.fixAll.oxc": "explicit",
|
||||
"source.organizeImports": "never",
|
||||
"source.sort.json": "always"
|
||||
"source.sort.json.biome": "always"
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"files.associations": {
|
||||
@ -38,14 +38,26 @@
|
||||
"files.eol": "\n",
|
||||
"i18n-ally.defaultNamespace": "translation",
|
||||
// "i18n-ally.displayLanguage": "zh-cn", // 界面显示语言
|
||||
"i18n-ally.enabledFrameworks": ["react-i18next", "i18next"],
|
||||
"i18n-ally.enabledParsers": ["ts", "js", "json"], // 解析语言
|
||||
"i18n-ally.enabledFrameworks": [
|
||||
"react-i18next",
|
||||
"i18next"
|
||||
],
|
||||
"i18n-ally.enabledParsers": [
|
||||
"ts",
|
||||
"js",
|
||||
"json"
|
||||
], // 解析语言
|
||||
"i18n-ally.fullReloadOnChanged": true,
|
||||
"i18n-ally.keystyle": "nested", // 翻译路径格式
|
||||
"i18n-ally.localesPaths": ["src/renderer/src/i18n/locales"],
|
||||
"i18n-ally.localesPaths": [
|
||||
"src/renderer/src/i18n/locales"
|
||||
],
|
||||
"i18n-ally.namespace": true, // 开启命名空间
|
||||
"i18n-ally.sourceLanguage": "zh-cn", // 翻译源语言
|
||||
"i18n-ally.usage.derivedKeyRules": ["{key}_one", "{key}_other"], // 标记单复数形式的键为已翻译
|
||||
"i18n-ally.usage.derivedKeyRules": [
|
||||
"{key}_one",
|
||||
"{key}_other"
|
||||
], // 标记单复数形式的键为已翻译
|
||||
"search.exclude": {
|
||||
".yarn/releases/**": true,
|
||||
"**/dist/**": true
|
||||
|
||||
@ -55,7 +55,7 @@
|
||||
"typecheck:web": "tsgo --noEmit -p tsconfig.web.json --composite false",
|
||||
"typecheck:ui": "cd packages/ui && npm run type-check",
|
||||
"i18n:check": "dotenv -e .env -- tsx scripts/check-i18n.ts",
|
||||
"i18n:sync": "dotenv -e .env -- tsx scripts/sync-i18n.ts",
|
||||
"i18n:sync": "i18next-cli sync",
|
||||
"i18n:auto": "dotenv -e .env -- tsx scripts/auto-translate-i18n.ts",
|
||||
"i18n:status": "i18next-cli status",
|
||||
"i18n:extract": "i18next-cli extract",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user