feat: rename maxLengthBreak to maxSentenceLength to prevent confusion

Rename the variable names to prevent confusion.
This commit is contained in:
xxnuo
2026-01-10 17:02:17 +08:00
parent 4e67ebd00f
commit 4e1726e86d
5 changed files with 12 additions and 13 deletions

View File

@@ -90,7 +90,7 @@ const resources = {
logDir: 'Log Directory',
workerIdleTimeout: 'Worker Idle Timeout (s)',
workersPerLanguage: 'Workers Per Language',
maxLengthBreak: 'Max Length Break',
maxSentenceLength: 'Max Length Break',
cacheSize: 'Cache Size',
logToFile: 'Log to File',
logToFileDesc: 'Write logs to file',
@@ -203,7 +203,7 @@ const resources = {
logDir: '日志目录',
workerIdleTimeout: '空闲超时(秒)',
workersPerLanguage: '每语言工作数',
maxLengthBreak: '最大断句长度',
maxSentenceLength: '最大断句长度',
cacheSize: '缓存大小',
logToFile: '写入文件',
logToFileDesc: '将日志写入文件',
@@ -316,7 +316,7 @@ const resources = {
logDir: 'ログディレクトリ',
workerIdleTimeout: 'アイドルタイムアウト(秒)',
workersPerLanguage: '言語ごとのワーカー数',
maxLengthBreak: '最大分割長',
maxSentenceLength: '最大分割長',
cacheSize: 'キャッシュサイズ',
logToFile: 'ファイルに記録',
logToFileDesc: 'ログをファイルに書き込む',

View File

@@ -11,7 +11,7 @@ export type DesktopServerConfig = {
logToFile: boolean
logConsole: boolean
logRequests: boolean
maxLengthBreak: number
maxSentenceLength: number
checkUpdate: boolean
cacheSize: number
modelDir: string