mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-11 09:11:10 +08:00
【新增】插件git同步模块,用于同步项目内容,加速项目开发
【调整】前端暗色问题
This commit is contained in:
24
frontend/plugin/vite-plugin-i18n/src/config/config.js
Normal file
24
frontend/plugin/vite-plugin-i18n/src/config/config.js
Normal 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',
|
||||
}
|
||||
Reference in New Issue
Block a user