其他
完整应用
deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DSH 插件:对话语言切换器
允许在中文和英文之间切换对话语言。切换后 AI 将使用对应语言回复。
settings.yaml# 从 GitHub 克隆安装
dsh plugin --profile web add https://github.com/Dingpenghui-good/dsh-conversation-language
# 或从本地路径安装(需要先 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
添加到 ~/.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
重启 DSH 后,打开 设置 → 通用设置,找到「对话内容语言」选项进行切换。
编辑 ~/.dsh/settings.yaml:
conversation-language:
conversationLanguage: zh # 或 en
然后重启 DSH。
切换到英文模式
或直接修改 settings.yaml 中的 conversationLanguage 值。
| 项目 | 值 |
|---|---|
| Settings Namespace | conversation-language |
| Schema | { conversationLanguage?: 'zh' \| 'en' } |
| 默认值 | zh (中文) |
| Persona Override | 根据语言设置动态更新系统提示 |
dsh-conversation-language/
├── src/
│ ├── index.ts # Host 层:settings + persona
│ ├── 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 # 安装依赖(含 tsdown + @tsdown/css)
npm run build # 构建产物到 lib/
⚠️ 必须执行
npm run build,插件运行时依赖lib/下的构建产物,不能直接使用源码。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。