fix: localize auto-compact threshold settings

This commit is contained in:
Xiaohan-Tian
2026-06-03 17:38:34 -07:00
parent 42fdcebd42
commit 5c6e1d69c5
6 changed files with 34 additions and 6 deletions
+5
View File
@@ -42,6 +42,11 @@ export const zhCnMessages: TranslationMessages = {
'settings.general.llmProvider.openaiCompatible': 'OpenAI 兼容服务(例如 OpenRouter、Ollama',
'settings.general.persistKeys.label': '在非 localhost 环境持久化 API Key',
'settings.general.persistKeys.help': '启用后,即使在非 localhost 环境下,API Key 也会保存到浏览器存储中。警告:这可能增加 XSS 攻击带来的安全风险。',
'settings.general.autoCompactThreshold.label': '自动压缩阈值',
'settings.general.autoCompactThreshold.help': '当预估上下文使用量达到此级别时,在下一次请求前压缩对话。',
'settings.general.autoCompactThreshold.conservative': '保守(95%',
'settings.general.autoCompactThreshold.standard': '标准(90%',
'settings.general.autoCompactThreshold.early': '提前(80%',
'settings.general.localRuntime.cachedStatus': '缓存模型状态',
'settings.general.localRuntime.cacheChecking': '正在检查本地模型缓存...',
'settings.general.localRuntime.cacheDownloaded': '已下载到浏览器缓存。',