【同步】前端项目源码

【修复】工作流兼容问题
This commit is contained in:
chudong
2025-05-10 11:53:11 +08:00
parent c514471adc
commit f1a75afaba
584 changed files with 55714 additions and 110 deletions

View File

@@ -0,0 +1,24 @@
export default {
projectPath: './src',
outputPath: './src/locales/',
logPath: './logs',
cachePath: './cache/translation_cache.json',
apiKey: {
zhipuAI: 'a160afdbea1644e68de5e5b014bea0f7.zZuSidvDSYOD7oJT',
qianwenAI: 'sk-1b4f64a523814e33a6221bfccc676be6',
api1: '',
},
languages: ['zhCN', 'zhTW', 'enUS', 'jaJP', 'koKR', 'ruRU', 'ptBR', 'frFR', 'esAR', 'arDZ'],
concurrency: 100,
exclude: ['node_modules', 'dist', 'build', 'locales', 'cache', 'logs'],
templateRegex: '\\$t\\([\\\'"](?!t_)([^\\\'"]+)[\\\'"]',
fileExtensions: ['.vue', '.js', '.ts', '.jsx', '.tsx'],
interval: 5000,
requestInterval: 100,
maxRetries: 3,
translateMethod: 'qianwenAI',
cacheLifetime: 7,
logRetention: 30,
createFileExt: '.json',
createEntryFileExt: '.ts',
}