Agent Skillsspupuz/VibeNVR › update-translations

update-translations

GitHub

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

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

Trigger Scenarios

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

Install

npx skills add spupuz/VibeNVR --skill update-translations -g -y
More Options

Non-standard path

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

Use without installing

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

Version History

  • ebf716d Current 2026-09-03 04:36

Metadata

Files
0
Version
f76eec4
Hash
7f9df009
Indexed
2026-09-03 04:36

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-21 18:03
浙ICP备14020137号-1