DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
import { defineLocale } from 'dsh-tauri/client'
import { PLUGIN_ID } from '../constants'
const zh = {
close: '关闭',
modeLabel: '工作模式',
modeLocal: '本地',
modeWorktree: '工作树',
modeNewWorktree: '新建工作树',
modeWorktreeDesc: '发送下一条消息时新建隔离 Git 工作树',
modeLocalDesc: '在当前本地工作区处理',
surfaceWorktree: '该会话正在工作树进行',
surfaceCheckout: '检出本地',
surfaceAbandon: '放弃',
surfaceDismiss: '关闭',
checkoutTitle: '将更改带回本地检出并继续',
checkoutBranchLabel: '本地检出分支名',
checkoutCurrentPath: '关联路径',
checkoutTargetPath: '项目路径',
checkoutConfirm: '确认检出',
checkoutCancel: '取消',
abandonTitle: '放弃工作树更改',
abandonBody: '确认放弃吗?这将归档当前会话及删除对应的临时工作树。',
abandonConfirm: '确认放弃',
abandonCancel: '取消',
progressCreating: '正在准备工作树',
progressCheckingOut: '正在检出文件',
progressCreated: '已创建工作树',
progressViewLogs: '日志',
progressThinking: '正在思考…',
progressError: '工作树处理失败',
inheritanceFailed: '无法继承会话历史,已取消发送并保留原会话和草稿,请重试',
progressDeleting: '正在删除工作树',
branchPlaceholder: 'dsh/feature-xyz',
logEmpty: '暂无创建日志',
sessionWorkingTreeBadge: '工作树',
} as const
const en: Record<keyof typeof zh, string> = {
close: 'Close',
modeLabel: 'Mode',
modeLocal: 'Local',
modeWorktree: 'Worktree',
modeNewWorktree: 'New worktree',
modeWorktreeDesc: 'Create an isolated Git worktree when the next message is sent',
modeLocalDesc: 'Process in the current local workspace',
surfaceWorktree: 'This session is running in a worktree',
surfaceCheckout: 'Checkout local',
surfaceAbandon: 'Abandon',
surfaceDismiss: 'Dismiss',
checkoutTitle: 'Bring changes back to local and continue',
checkoutBranchLabel: 'Local checkout branch name',
checkoutCurrentPath: 'Current path',
checkoutTargetPath: 'Target project path',
checkoutConfirm: 'Confirm checkout & merge',
checkoutCancel: 'Cancel',
abandonTitle: 'Abandon worktree changes',
abandonBody: 'Are you sure? This will archive this session and delete its temporary worktree.',
abandonConfirm: 'Confirm abandon',
abandonCancel: 'Cancel',
progressCreating: 'Preparing workspace',
progressCheckingOut: 'Checking out files',
progressCreated: 'Workspace created',
progressViewLogs: 'Logs',
progressThinking: 'Thinking…',
progressError: 'Worktree processing failed',
inheritanceFailed: 'Could not inherit conversation history. Sending was canceled; the original session and draft were preserved. Please retry.',
progressDeleting: 'Deleting worktree',
branchPlaceholder: 'dsh/feature-xyz',
logEmpty: 'No creation log yet',
sessionWorkingTreeBadge: 'Worktree',
}
export const locale = defineLocale(PLUGIN_ID, { zh, en })