i18n-manager
Extract hardcoded strings into .resx or .json localization files and replace with translation keys. Use when localizing code or invoking /i18n-manager.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- i18n-manager
- description
- Extract hardcoded strings into .resx or .json localization files and replace with translation keys. Use when localizing code or invoking /i18n-manager.
02 资源文件 6
- 参考文档reference.md593 B
- 参考文档references/build-verify-handoff.md272 B
- 参考文档references/frame-context.md1.7 KB
- 参考文档references/localize-apply.md712 B
- 参考文档references/must-not.md365 B
- 参考文档references/scan-and-workflow.md1.2 KB
03 SKILL.md 正文
STOP - Read before ANY tool call
Read _shared/skill-boilerplate.md first. It holds the guardrails read, the session gate rule, the user sim rule, the one-step rule, the gate check, and the user chat language rule. The steps below are skill-specific only.
Skill: i18n-manager
Trigger
Negative signal: applies as defined in _shared/skill-boilerplate.md; the skill-specific signals are listed below.
Invoke when the user requests: /i18n-manager, localize code, or asks to internationalize a component.
Arguments (optional):
| Input | Meaning |
|---|---|
| Target directory | Scopes the scan for string literals to a specific subfolder |
Outcome
- Refactored code files where raw strings are replaced by framework-native translation variables or helpers (e.g.
_localizer["Key"],t('Key')). - Updated localization resource files (
.resxfor C#,.jsontranslation dictionaries for JavaScript/TypeScript).
Lazy-load (only when needed)
| When | Path (after syncing the active adapter) |
|---|---|
| C# projects | {{TOOLKIT_ROOT}}/skills/_shared/dotnet-guidelines/string-manipulation.md |
| React / Angular | {{TOOLKIT_ROOT}}/skills/_shared/frontend-guidelines/frontend-practices.md |
| Caveman Mode (if active) | {{TOOLKIT_ROOT}}/skills/_shared/caveman/CAVEMAN.md - Full cap |
| Reference index (routing only) | {{TOOLKIT_ROOT}}/skills/i18n-manager/reference.md |
| Process step detail (lazy) | {{TOOLKIT_ROOT}}/skills/i18n-manager/references/<section>.md |
Never by default: do not preload all references/*.md, unrelated stack guideline packs, or memory-bank/PRD dumps. Load one section per Process step (SKILL-REFERENCE-RETRIEVAL.md).
Reference routing
| Situation | Path |
|---|---|
| Frame context / gates | references/frame-context.md |
| Scan literals + workflow choice | references/scan-and-workflow.md |
| Resource bundles + code refactor | references/localize-apply.md |
| Build, verify, handoff | references/build-verify-handoff.md |
| Must not (full) | references/must-not.md |
Process
Read references/<section>.md for procedural detail — not full reference.md.
Step -1b / -1. Caveman + gates
Follow references/frame-context.md.
0–1. Frame context and scan
Follow references/frame-context.md then references/scan-and-workflow.md. Wait for explicit workflow choice before writing.
2–3. Apply localization
Follow references/localize-apply.md.
4–5. Build, verify, handoff
Follow references/build-verify-handoff.md.
Must not
Enforce the full list in references/must-not.md. Critical: no generic keys (Text1); no mutating logger/config strings; no write before workflow choice.
Handoff
| Situation | Next |
|---|---|
| Commit refactors | /commit |
| Large app-wide i18n via SDD | /sdd-spec then plan/develop |
| Stack-specific coding help | /developer or matching *-developer |
04 同仓库更多 Skills
user-own-skill
Operator-owned skill that is not part of the toolkit.
vue-developer
Implement or fix small-to-medium Vue 3 features without full SDD (Composition API, Pinia, configured project test runner; Vitest is a fallback for new projects). Use for isolated Vue work or when invoking /vue-developer.
test-coverage
Run .NET Coverlet coverage, report Sonar-aligned metrics, and evaluate against a threshold (default 80%). Use for coverage reports or when invoking /test-coverage.
split-story-checklist
Break refined backlog steps into a dependency-aware task checklist (backend, frontend, tests). Prefer features/... story folders. Use when breaking down tasks or invoking /split-story-checklist.
sdd-spec
Create a PRD for a new feature or change (agent PRD .md; language per LANGUAGE.md + preferences under features/). Feeds sdd-plan. Use when creating a spec or invoking /sdd-spec.
sdd-plan
Create a baby-step PLAN from an existing PRD (agent PLAN .md; language per LANGUAGE.md + preferences). Feeds sdd-develop. Use when creating a plan or invoking /sdd-plan.