DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
import { defineLocale } from 'dsh-tauri/client'
import { PLUGIN_ID } from '../../shared/constants'
const zh = {
turnComplete: '轮次完成通知',
turnCompleteHint: '设置 DSH 完成后何时提醒你;选「始终」时权限与提问在前台也照常提醒',
modeNever: '从不',
modeBackground: '仅在未聚焦时',
modeAlways: '始终',
approval: '启用权限通知',
approvalHint: '在需要通知权限时显示提醒',
question: '启用问题通知',
questionHint: '在需要回答问题才能继续时显示通知',
sound: '通知提示音',
soundHint: '任务完成、请求权限和提问时的提示音',
soundDefault: '默认',
soundClassic: '经典',
soundNone: '无',
soundCustom: '自定义',
soundCustomChoose: '选择提示音文件',
soundCustomClear: '移除自定义提示音',
soundCustomLarge: '提示音文件过大(上限 512 KB)',
soundCustomUnreadable: '无法读取该提示音文件',
labelTurn: '轮次已完成',
labelApproval: '需要授权',
labelQuestion: '需要回答',
bodyApproval: '有待处理的授权请求',
bodyQuestion: '有待回答的问题',
sessionFallback: 'DSH 会话',
approve: '批准',
reject: '拒绝',
reply: '回复',
replyPlaceholder: '输入回复内容',
}
const en: Record<keyof typeof zh, string> = {
turnComplete: 'Turn completion notification',
turnCompleteHint: 'When to be reminded after DSH finishes; “Always” also alerts for permissions and questions while you are watching',
modeNever: 'Never',
modeBackground: 'Only when unfocused',
modeAlways: 'Always',
approval: 'Permission notifications',
approvalHint: 'Show an alert when a permission request is needed',
question: 'Question notifications',
questionHint: 'Show a notification when an answer is required to continue',
sound: 'Notification sound',
soundHint: 'Sound for task completion, permission requests and questions',
soundDefault: 'Default',
soundClassic: 'Classic',
soundNone: 'None',
soundCustom: 'Custom',
soundCustomChoose: 'Choose a sound file',
soundCustomClear: 'Remove custom sound',
soundCustomLarge: 'Sound file is too large (512 KB limit)',
soundCustomUnreadable: 'Unable to read that sound file',
labelTurn: 'Turn completed',
labelApproval: 'Approval required',
labelQuestion: 'Answer required',
bodyApproval: 'An approval request is waiting',
bodyQuestion: 'A question is waiting for your answer',
sessionFallback: 'DSH session',
approve: 'Approve',
reject: 'Reject',
reply: 'Reply',
replyPlaceholder: 'Type your reply',
}
/** 通知设置的文案字典;`registerLocale` 必须由 `ctx.effect` 调用(保持未绑定 this)。 */
export const locale = defineLocale(PLUGIN_ID, { zh, en })