dsh-plugin-i18n

dsh-plugin-i18n is a skill for Claude Code, Codex from hackerFish/awesome-dsh-skills. It costs 46 tokens per session (563 once invoked), scanned A, original, MIT.

A pattern for giving a DSH plugin’s user interface English and Chinese text that changes immediately when the selected language changes.

In plain words
What is it for?
Use it to register translation dictionaries, connect them to plugin slots, insert parameters into messages, update settings labels, and verify language switching and fallback behavior.
Why use it?
It keeps translations in named dictionaries and lets interface components request the correct wording instead of embedding text directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to register translation dictionaries, connect them to plugin slots, insert parameters into messages, update settings labels, and verify language switching and fallback behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hackerFish/awesome-dsh-skills --skill dsh-plugin-i18n
Clone the repo
git clone --depth 1 https://github.com/hackerFish/awesome-dsh-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsh-plugin-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n/github.svg)](https://agentmods.dev/skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n)
Your own site
<a href="https://agentmods.dev/skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n"><img src="https://agentmods.dev/badge/skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dsh-plugin-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n"><img src="https://agentmods.dev/badge/skills/hackerfish/awesome-dsh-skills/dsh-plugin-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00563
Opus 5 $0.00023 $0.00282
Sonnet 5 $0.00009 $0.00113
Haiku 4.5 $0.00005 $0.00056

Measured 12d ago against content hash 03f8ca0b2064, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dsh-plugin-i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dsh-plugin-i18n/SKILL.md · 42 lines

What it actually says

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'):
const NS = 'my.ns'
const zh = { 'btn.title': '开始', 'err.generic': '出错:{code}' }
const en = { 'btn.title': 'Start', 'err.generic': 'Error: {code}' }
  1. apply 里注册(放 ctx.effect,随插件生命周期释放):
ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'my-plugin: dictionaries')
  1. slot 声明 locale: NS;组件内 t('btn.title')t('err.generic', { code }){param} 插值)
  2. 设置页标签用惰性 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-publish
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 42 lines · 46 tokens per session scan A 03f8ca0b2064

Subscribe to this mod's changes

dsh-plugin-i18n is a skill published in the GitHub repository hackerFish/awesome-dsh-skills (5 stars, last pushed 8d ago), licensed MIT. It adds 46 tokens to every session and 563 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.