一键导入
i18n
Add or update translations across all 7 locale files and wire them into React components or pure utility functions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add or update translations across all 7 locale files and wire them into React components or pure utility functions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold a new dashboard chart component with registry, types, and proper theme integration.
Create a new customizable dashboard with its own chart registry, provider, and page. Use when adding dashboards like DRep or SPO dashboard.
Context window conservation rules. Invoke when approaching context limits or before large tasks.
Deep reflection on the skill learning system itself. Analyzes what's working, what's stale, and proposes structural improvements. The meta-skill.
End-of-session automation. Creates a journey and evolves skills based on session learnings.
Run the build and intelligently fix TypeScript errors with guardrails. Stops if fixes introduce more errors or the same error persists after 3 attempts.
| name | i18n |
| updated | "2026-02-11T00:00:00.000Z" |
| description | Add or update translations across all 7 locale files and wire them into React components or pure utility functions. |
| argument-hint | ["scope description"] |
| allowed-tools | Read, Edit, Write, Glob, Grep |
$0 - What to translate (e.g., "DRep dashboard labels", "new filter buttons")Locales: en, de, fr, es, pt, ja, zh — files at src/messages/{locale}.json
Library: next-intl — useTranslations("namespace") in components, typed labels object for lib/ utilities
CRITICAL: All 7 files must stay in sync. Missing keys cause runtime errors.
en.json (find neighboring keys)const t = useTranslations("namespace"); t("key")| Namespace | Purpose |
|---|---|
common | Shared UI: loading, retry, search, showMore |
meta | Page titles/descriptions |
landing | Landing page |
dashboard | Dashboard page |
stats | Stat cards |
status | Status labels: Active, Ratified, Enacted |
actionTypes | NoConfidence, UpdateCommittee, etc. |
filters | Filter UI |
table | Table headers |
voting | drep, spo, cc, yes, no, abstain, threshold |
charts | Dashboard chart titles |
sort | Sort controls |
proposal | Proposal detail page |
export | Export file labels |
drep | DRep dashboard |
drep.profile | DRep profile page |
tabs | Tab labels |
expiry | Proposal expiry |
errors | Error states |
download | Download dropdown |
accessibility | Screen reader labels |
Max one nesting level (e.g., charts.proposalStatus.title).
"Show {count} more" — ensure {count} in all locales"\uFEFF") for Excel compatibilityFunctions in lib/ can't use hooks. Pass a typed labels object from the component:
// lib/export.ts
export interface ExportLabels { noRationale: string; voteYes: string; }
export function exportToCSV(data: Data[], labels: ExportLabels) { ... }
// Component
const labels: ExportLabels = useMemo(() => ({
noRationale: t("noRationale"), voteYes: t("voteYes"),
}), [t]);
getVoteBadgeClasses(vote.vote)), translated values only for displayuseLocale() for date/number formatting: new Date(ts).toLocaleDateString(locale, {...})