Agent Skillsspupuz/VibeNVR › update-translations

update-translations

GitHub

自动化提取前端国际化键值并自动翻译,更新多语言字典。

.agents/skills/update-translations/SKILL.md spupuz/VibeNVR

触发场景

新增 i18n 键值 需要批量翻译文本

安装

npx skills add spupuz/VibeNVR --skill update-translations -g -y
更多选项

非标准路径

npx skills add https://github.com/spupuz/VibeNVR/tree/main/.agents/skills/update-translations -g -y

不安装直接使用

npx skills use spupuz/VibeNVR@update-translations

指定 Agent (Claude Code)

npx skills add spupuz/VibeNVR --skill update-translations -a claude-code -g -y

安装 repo 全部 skill

npx skills add spupuz/VibeNVR --all -g -y

预览 repo 内 skill

npx skills add spupuz/VibeNVR --list

SKILL.md

Frontmatter
{
    "name": "update-translations",
    "description": "Extracts new i18n keys and automatically translates them across all languages."
}

Update Translations Workflow

This workflow automates the extraction and translation of i18n keys for the VibeNVR frontend.

1. Extract Translation Keys

Run the script to parse all .jsx files in frontend/src/ and extract new t() keys, appending them to the English dictionary (frontend/src/locales/en/translation.json).

cd frontend
python3 scripts/extract_t.py

2. Auto-Translate

Run the auto-translation script which reads the English base dictionary and generates translations for all other supported languages using Google Translate.

cd frontend
python3 scripts/auto_translate.py

3. Verify and Commit

Ensure that no errors were generated during the execution, and that the .json files in frontend/src/locales/ were updated successfully.

git status

版本历史

  • ebf716d 当前 2026-09-03 04:36

元信息

文件数
0
版本
f76eec4
Hash
7f9df009
收录时间
2026-09-03 04:36

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 11:27
浙ICP备14020137号-1 $访客地图$