1738348785/dsh-plugin-text-translation ↗★ 2
dsh-plugin-text-translation
DeepSeek 文档本地化插件:保留标签提取、分片与重组的翻译工作流
AI 分析
适合本地化和翻译团队,支持标签安全抽取与批量切分拼装,需按配置设置参数。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:1738348785/dsh-plugin-text-translation说明文档
阅读完整 README ↗📦 安装与使用
方式一:从 GitHub 安装(推荐)
dsh plugin --profile demo add github:1738348785/dsh-plugin-text-translation
dsh 会拉取仓库、自动把插件的 cordis.patch.yml 追加进 profile 的 bundle 层。
(GitHub 安装实测通过:依赖走 pnpm store,无符号链接解析问题。)
方式二:安装到 web profile(让 GUI 插件页可见)
DSH Web 的「设置 → 插件」清单显示的是当前运行的 profile 实际加载的插件。 要让 GUI 里看到并管理本插件,需要装进 web profile 并重启:
dsh plugin --profile web add github:1738348785/dsh-plugin-text-translation
## ⚙️ 插件配置项 (Config Schema)
在 profile 的 `cordis.patch.yml`(或 `--patch` 覆盖层)中可自定义:
```yaml
- insert:
- id: text-translation
name: dsh-plugin-text-translation
config:
pythonPath: python # Python 解释器路径 (默认: python)
batchSize: 25 # 单批次切片行数大小 (默认: 25)