插件目录 / Developer / dsh-conversation-language
dsh-conversation-language
未验证 Dingpenghui-good
功能简介
DSH plugin for switching conversation language between Chinese and English
未验证 — 尚未实测
DSH plugin for switching conversation language between Chinese and English 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-conversation-language
DSH 插件:对话语言切换器
功能
允许在中文和英文之间切换对话语言。切换后 AI 将使用对应语言进行思考和回复。
特性
- 🌐 在设置界面中直接切换语言
- 🔄 动态更新 Persona(系统提示),无需重启即可生效
- 💾 设置持久化到
settings.yaml - 🎨 匹配 DSH 原生设置界面样式
安装
⚠️ 安装完成后必须重启 DeepSeek Harness,插件才能生效。
方式一:使用 dsh 命令(推荐)
# 先 cd 到插件目录
cd /path/to/dsh-conversation-language
dsh plugin --profile web add .
方式二:手动安装
- 克隆插件到 plugins 目录:
git clone https://github.com/Dingpenghui-good/dsh-conversation-language.git ~/.dsh/plugins/dsh-conversation-language
# Windows: git clone https://github.com/Dingpenghui-good/dsh-conversation-language.git %USERPROFILE%\.dsh\plugins\dsh-conversation-language
- 添加到
~/.dsh/profiles/web/package.json:
{
"dependencies": {
"dsh-conversation-language": "link:C:/Users/<你的用户名>/.dsh/plugins/dsh-conversation-language"
},
"dsh": {
"profile": {
"bundles": [
// ... 其他 bundles
"dsh-conversation-language"
]
}
}
}
- 运行安装:
cd ~/.dsh/profiles/web
pnpm install
- 重启 DeepSeek Harness。
配置
方式一:通过设置界面
重启 DSH 后,打开 设置 → 通用设置,找到「对话内容语言」选项进行切换。
方式二:直接修改 settings.yaml
编辑 ~/.dsh/settings.yaml(Windows:%USERPROFILE%\.dsh\settings.yaml):
conversation-language:
conversationLanguage: zh # 或 en
然后重启 DSH。
使用
切换语言后,AI 将自动以对应语言进行思考和回复。也可通过 get_conversation_language Tool 查询当前设置。
技术说明
| 项目 | 值 |
|---|---|
| Settings Namespace | conversation-language |
| Schema | { conversationLanguage?: 'zh' | 'en' } |
| 默认值 | zh (中文) |
| Persona Override | 根据语言设置动态更新系统提示 |
| Tool 注册 | get_conversation_language — 查询当前语言设置 |
插件结构
dsh-conversation-language/
├── src/
│ ├── index.ts # Host 层:settings + persona + tool
│ ├── client/
│ │ ├── index.ts # Client 层:UI 注册
│ │ ├── LanguageSwitcherRow.tsx # React 组件
│ │ ├── LanguageSwitcherRow.module.css
│ │ └── settings-store.ts # 状态管理
│ └── locales/
│ └── index.ts # 国际化字典
├── lib/ # 构建产物(npm run build 生成,安装时必须存在)
├── cordis.patch.yml # Cordis 静态插件配置
├── package.json
└── README.md
开发
cd dsh-conversation-language
npm install
npm run build # 构建产物到 lib/;安装前必须执行此步
⚠️ 必须执行
npm run build,插件运行时依赖lib/下的构建产物,不能直接使用源码。
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-conversation-language」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:Dingpenghui-good/dsh-conversation-language Headless(CLI)profile:
dsh plugin --profile headless add github:Dingpenghui-good/dsh-conversation-language 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。