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'
/** 桌宠设置分区的双语文案(`zh` 键集合为权威,`en` 缺键即编译错误)。 */
const zh = {
cancel: '取消',
close: '关闭',
importRepository: '导入仓库',
repositoryLabel: 'GitHub 仓库',
repositoryHint: '输入 owner/repo 或 https://github.com/owner/repo。仅登记远端资源地址,不下载视频包;选择宠物后按需播放。',
repositoryInvalid: '请输入有效的 GitHub 仓库:owner/repo 或 https://github.com/owner/repo。',
repositoryImporting: '导入中…',
repositoryImportFailed: '仓库登记失败,请检查仓库是否公开、包含有效宠物配置,以及网络连接后重试。',
clear: '取消选择',
clearFailed: '取消选择失败',
closePet: '关闭宠物',
communityShare: '社区分享',
communityShareFailed: '打开社区分享页面失败',
create: '创建',
createFailed: '创建宠物会话失败',
delete: '删除',
deleteFailed: '删除宠物失败',
update: '更新',
updateFailed: '更新宠物失败,已保留原内容,请稍后重试。',
emptyImported: '尚未导入宠物,点击右上角「导入」添加 .zip 资源包',
enable: '启用',
enablePet: '启用宠物',
import: '导入',
importFailed: '导入宠物失败',
listFailed: '读取宠物列表失败',
loading: '加载中…',
name: '宠物',
select: '选择',
setPetFailed: '选择宠物失败',
setSizeFailed: '设置宠物大小失败',
sizeHint: '调整桌宠窗口的显示大小(50–200%)',
sizeLabel: '大小',
tabCodexDesc: '从 Codex 或压缩包中导入 Codex 宠物(支持 .zip 文件)',
tabInstalledDesc: '宠物会管理对话串,并突出显示需要关注的事项',
throwFailed: '切换抛射开关失败',
throwHint: '开启后把宠物甩出去会飞起来,碰到屏幕边缘会回弹;关闭时松手即停。',
throwLabel: '开启宠物抛射',
toggleFailed: '切换桌宠开关失败',
waylandNotice: '当前为 Wayland 会话,桌宠窗口无法置顶,会被其他窗口遮挡,也不会停在设定的位置。开启 XWayland 可恢复这两项能力。',
xwaylandDesc: '开启后整个应用经 XWayland 渲染,分数缩放下界面变模糊,输入法走 XIM 路径。系统未运行 XWayland 时该选项不生效。',
xwaylandDisable: '关闭 XWayland',
xwaylandEnable: '开启 XWayland',
xwaylandFailed: '切换 XWayland 开关失败',
xwaylandRestart: '设置已保存,重启应用后生效。',
}
const en: Record<keyof typeof zh, string> = {
cancel: 'Cancel',
close: 'Close',
importRepository: 'Import repository',
repositoryLabel: 'GitHub repository',
repositoryHint: 'Enter owner/repo or https://github.com/owner/repo. Only remote resource URLs are registered; no video package is downloaded. Select the pet to play it on demand.',
repositoryInvalid: 'Enter a valid GitHub repository: owner/repo or https://github.com/owner/repo.',
repositoryImporting: 'Importing…',
repositoryImportFailed: 'Could not register the repository. Check that it is public, contains valid pet configuration, and your connection is working, then retry.',
clear: 'Clear selection',
clearFailed: 'Failed to clear pet selection',
closePet: 'Close pet',
communityShare: 'Community share',
communityShareFailed: 'Failed to open the community share page',
create: 'Create',
createFailed: 'Failed to create a pet session',
delete: 'Delete',
deleteFailed: 'Failed to delete pet',
update: 'Update',
updateFailed: 'Failed to update pet. Previous content was kept; please retry later.',
emptyImported: 'No pets imported yet. Click “Import” to add a .zip package',
enable: 'Enable',
enablePet: 'Enable pet',
import: 'Import',
importFailed: 'Failed to import pet',
listFailed: 'Failed to load pet list',
loading: 'Loading…',
name: 'Pets',
select: 'Choose',
setPetFailed: 'Failed to select pet',
setSizeFailed: 'Failed to set pet size',
sizeHint: 'Adjust the pet window size (50–200%)',
sizeLabel: 'Size',
tabCodexDesc: 'Import Codex pets from Codex or archives (.zip files supported)',
tabInstalledDesc: 'Pets manage your conversation threads and highlight items that need attention',
throwFailed: 'Failed to toggle pet throw',
throwHint: 'When enabled, flinging the pet sends it flying and bouncing off screen edges; when disabled, it stops where you release it.',
throwLabel: 'Enable pet throw',
toggleFailed: 'Failed to toggle the pet',
waylandNotice: 'This is a Wayland session. The pet window cannot stay on top, so it is covered by other windows and does not stay where it was placed. Enable XWayland to restore both behaviors.',
xwaylandDesc: 'When enabled, the whole app renders through XWayland. The interface blurs under fractional scaling and input methods go through XIM. The option has no effect when XWayland is not running.',
xwaylandDisable: 'Disable XWayland',
xwaylandEnable: 'Enable XWayland',
xwaylandFailed: 'Failed to toggle XWayland',
xwaylandRestart: 'Saved. Takes effect after the app restarts.',
}
export const locale = defineLocale(PLUGIN_ID, { zh, en })