dsh-plugin-i18n
给 DSH 插件的客户端 UI 做中英文国际化时使用:locale 命名空间、slot 声明、t() 取词与切语言即时生效。
Skill by hackerFish
Chalk Labs
Need help deploying dsh-plugin-i18n?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/hackerfish-dsh-plugin-i18n
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/dsh-plugin-i18n
What's inside
- Skill name
dsh-plugin-i18n- Description
- 给 DSH 插件的客户端 UI 做中英文国际化时使用:locale 命名空间、slot 声明、t() 取词与切语言即时生效。
- License
- MIT
- Instructions
- 37 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# DSH 插件客户端国际化(依据 @deepseek-ai/dsh-client-locale 实现与实战验证)
## 机制
- 每个插件注册自己的命名空间字典:`ctx.locale.register('my.ns', { zh: {...}, en: {...} })`
- 在 slot 注册里声明 `locale: 'my.ns'` → 组件 props 自动获得 `t(key, params)`
- `t` 每次调用实时读当前语言(切语言即时生效,无需重启)
- 未命中回退顺序:当前语言 → zh → 返回 key 本身
## 步骤
1. client 的 `inject` 数组加 `'locale'`
2. 定义命名空间与双字典(key 用点分命名,如 `'mic.err.network'`):
```ts
const NS = 'my.ns'
const zh = { 'btn.title': '开始', 'err.generic': '出错:{code}' }
const en = { 'btn.title': 'Start', 'err.generic': 'Error: {code}' }
```
3. apply 里注册(放 `ctx.effect`,随插件生命周期释放):
```ts
ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'my-plugin: dictionaries')
```
4. slot 声明 `locale: NS`;组件内 `t('btn.title')`、`t('err.generic', { code })`(`{param}` 插值)
5. 设置页标签用惰性 label:`label: () => t('settings.tabLabel')` —— 每次渲染求值,切语言即更新
## 验证
- 切换入口:设置 → 语言(Language)选 zh/en,UI 文案即时切换
- 自测里 mock `ctx.locale.register/bind`,断言字典注册与 slot 的 `locale` 声明
- 双语 README 惯例:`README.md`(英文)+ `README.zh.md`(中文),开头互链 `[中文](README.zh.md)` / `[English](README.md)`
- 注意:经 HTTP API 写中文(如 GitHub description)避免 PowerShell 直接传中文 body,见 dsh-plugin-publishFrom hackerFish/awesome-dsh-skills, MIT.
More from hackerFish/awesome-dsh-skills
- 0.563score
dsh-plugin-client
hackerFish
开发 DSH 插件的 client 半端(浏览器 UI)时使用:按已验证的 slot 与标准-kit 契约注册界面、双目标构建并包装客户端 bundle。
SkillBFreshness: B★ 4Claude Code +9 - 0.563score
dsh-plugin-publish
hackerFish
发布 DSH 插件到 GitHub 并收录进 dsh 生态时使用:构建产物入库、建仓与 topics、awesome 列表 PR、常见编码陷阱。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-changelog
hackerFish
维护版本变更记录时使用:遵循 Keep a Changelog 约定,与语义化版本联动。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-pr-review
hackerFish
审查 pull request 时使用:单一目的检查、结构化反馈、对事不对人。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-debug-session
hackerFish
排查 DSH 启动失败、插件不生效或会话异常时使用:按序收集信息、二分定位、备份回滚。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-test-first
hackerFish
修复 bug 或实现新功能时使用:先写失败测试,再最小实现,最后重构。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-plugin-dev
hackerFish
开发或调试 DeepSeek Harness 插件时使用:按已验证的结构编写 bundle、本地调试、发布与收录。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-git-commit
hackerFish
提交代码时使用:按约定式提交写 commit message,并在提交前做最小自检。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-dependency-audit
hackerFish
升级或审查项目依赖时使用:审计安全告警、控制安装脚本风险、制定升级回滚预案。
SkillBFreshness: B★ 4Claude Code +9 - 0.557score
dsh-preset-authoring
hackerFish
Author or edit a DeepSeek Harness agent preset (agent.cordis.yml + optional preset.yml) with verified row structure, id rules, install location, and…
SkillBFreshness: B★ 4Claude Code +9 - 0.557score
dsh-webapp-testing
hackerFish
Verify a local web application's rendered browser behavior with console, network, server, and focused regression-test evidence.
SkillBFreshness: B★ 4Claude Code +9 - 0.557score
dsh-office-artifacts
hackerFish
Create, repair, transform, or verify XLSX, DOCX, PPTX, and PDF deliverables with format-aware tools and reopen or render checks.
SkillBFreshness: B★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Aug 24, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/hackerFish/awesome-dsh-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from hackerFish
- 0.563score
dsh-plugin-client
hackerFish
开发 DSH 插件的 client 半端(浏览器 UI)时使用:按已验证的 slot 与标准-kit 契约注册界面、双目标构建并包装客户端 bundle。
SkillBFreshness: B★ 4Claude Code +9 - 0.563score
dsh-plugin-publish
hackerFish
发布 DSH 插件到 GitHub 并收录进 dsh 生态时使用:构建产物入库、建仓与 topics、awesome 列表 PR、常见编码陷阱。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-test-first
hackerFish
修复 bug 或实现新功能时使用:先写失败测试,再最小实现,最后重构。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-changelog
hackerFish
维护版本变更记录时使用:遵循 Keep a Changelog 约定,与语义化版本联动。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-dependency-audit
hackerFish
升级或审查项目依赖时使用:审计安全告警、控制安装脚本风险、制定升级回滚预案。
SkillBFreshness: B★ 4Claude Code +9 - 0.560score
dsh-debug-session
hackerFish
排查 DSH 启动失败、插件不生效或会话异常时使用:按序收集信息、二分定位、备份回滚。
SkillBFreshness: B★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get dsh-plugin-i18n running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
dsh-plugin-i18n skill. Agent Mart. https://agentmart.dev/skills/hackerfish-dsh-plugin-i18n (last updated 2026-10-24)