AI SummaryThis skill automates management of iOS/macOS localization files (*.xcstrings), helping developers clean stale entries, detect missing Chinese translations (Simplified and Traditional), and maintain translation completeness. It's essential for teams maintaining multi-language Apple apps.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "i18n-translate" skill in my project. Please run this command in my terminal: # Install skill into the correct directory (6 files) mkdir -p .claude/skills/i18n-translate && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/i18n-translate/SKILL.md "https://raw.githubusercontent.com/CofficLab/Cisum/main/.claude/skills/i18n-translate/SKILL.md" && mkdir -p .claude/skills/i18n-translate/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/i18n-translate/scripts/add_translation.py "https://raw.githubusercontent.com/CofficLab/Cisum/main/.claude/skills/i18n-translate/scripts/add_translation.py" && mkdir -p .claude/skills/i18n-translate/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/i18n-translate/scripts/batch_process.py "https://raw.githubusercontent.com/CofficLab/Cisum/main/.claude/skills/i18n-translate/scripts/batch_process.py" && mkdir -p .claude/skills/i18n-translate/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/i18n-translate/scripts/check_missing.py "https://raw.githubusercontent.com/CofficLab/Cisum/main/.claude/skills/i18n-translate/scripts/check_missing.py" && mkdir -p .claude/skills/i18n-translate/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/i18n-translate/scripts/clean_stale.py "https://raw.githubusercontent.com/CofficLab/Cisum/main/.claude/skills/i18n-translate/scripts/clean_stale.py" && mkdir -p .claude/skills/i18n-translate/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/i18n-translate/scripts/validate.py "https://raw.githubusercontent.com/CofficLab/Cisum/main/.claude/skills/i18n-translate/scripts/validate.py" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
管理 iOS/macOS 应用的 *.xcstrings 本地化翻译文件。自动清理过期条目、检测缺失翻译、添加简繁体中文翻译。当用户需要处理翻译、补充缺失的 zh-Hans/zh-HK 翻译、或清理 *.xcstrings 文件时使用此 skill。
iOS/macOS 本地化翻译管理
管理项目中所有 *.xcstrings 文件的中文翻译,支持简体中文 (zh-Hans) 和繁体中文 (zh-HK)。
工作流程
处理翻译请求时,首先查找所有 .xcstrings 文件,然后按以下顺序执行:
0. 查找所有 .xcstrings 文件
`bash find . -name ".xcstrings" -not -path "." | head -20 `
1. 清理过期条目
`bash python3 scripts/clean_stale.py <文件路径>.xcstrings ` 删除所有 extractionState 为 stale 的条目。可批量处理所有文件: `bash find . -name ".xcstrings" -not -path "." -exec python3 scripts/clean_stale.py {} \; `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster