|
|
1 неделя назад | |
|---|---|---|
| .. | ||
| README.md | 1 неделя назад | |
| agent-names-zh.json | 1 неделя назад | |
| localize-agents-zh.ps1 | 1 неделя назад | |
Localize agent name and description fields in YAML frontmatter to Simplified Chinese. This makes agent names readable in Copilot Chat's agent picker for Chinese-speaking users.
| File | Description |
|---|---|
agent-names-zh.json |
Mapping of English agent names → Chinese translations (130+ entries) |
localize-agents-zh.ps1 |
PowerShell script that reads the JSON and updates installed agent files |
After installing agents with install.sh --tool copilot:
# Localize agent names to Chinese
powershell -ExecutionPolicy Bypass -File scripts/i18n/localize-agents-zh.ps1
By default, the script processes:
%USERPROFILE%\.github\agents\%USERPROFILE%\.copilot\agents\Pass custom paths if needed:
powershell -File scripts/i18n/localize-agents-zh.ps1 -TargetDirs @("C:\custom\path\agents")
agent-names-zh.json (UTF-8 encoded) for the translation map.md file in the target directories:
name: field from YAML frontmattername: and description: fieldsBefore:
---
name: Security Engineer
description: Threat modeling, secure code review, security architecture
---
After:
---
name: 安全工程师
description: 威胁建模、安全代码审查与应用安全架构专家
---
~/.github/agents/), not source filesinstall.sh update (which overwrites with English originals)