用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ok-oldking/ok-script --skill compile-i18n命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | Compile i18n |
| description | How to update Qt translations and generate the web i18n catalog |
When you are instructed to add or update internationalization (i18n) translations for this project, please follow these steps:
.ts translation files located in the ok/ui/qt/i18n/ directory. Typically, these files include:
zh_CN.ts (Simplified Chinese)zh_TW.ts (Traditional Chinese)ja_JP.ts (Japanese)ko_KR.ts (Korean)es_ES.ts (Spanish)en_US.ts (English)<context> and <message> blocks in each XML file, without the type="unfinished" attribute. If you are adding many translations, or just want to minimize errors, use the provided add_translation.py script to automate the XML injection:
$py = if (Test-Path .\.venv\Scripts\python.exe) { ".\.venv\Scripts\python.exe" } else { "python" }
& $py .\.agents\skills\compile_i18n\add_translation.py --context "YourContext" --source "Your Source String" --zh_cn "Your Chinese String"
IMPORTANT WARNING: DO NOT use pyside6-lupdate as it corrupts and deletes existing translations. Always modify the XML nodes natively or use the python script!WebUI context are complete. You must replace <translation type="unfinished" /> with <translation>Your Translation</translation>.WebUI context by running this command from the workspace root:// turbo
npm run i18n
npm run dev and npm run build also run this generator automatically.
基于 SOC 职业分类