i18n-translate — community i18n-translate, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Localization Agents needing automated translation management for iOS and macOS platforms. A player for Apple platform

CofficLab CofficLab
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The i18n-translate skill by CofficLab is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Localization Agents needing automated translation management for iOS and macOS platforms.

Core Value

Empowers agents to manage and translate *.xcstrings files, supporting both Simplified Chinese (zh-Hans) and Traditional Chinese (zh-HK), utilizing Python scripts for tasks like cleaning stale entries and checking missing translations.

Capabilities Granted for i18n-translate

Automating translation updates for iOS and macOS projects
Cleaning stale entries in *.xcstrings files using Python scripts
Checking for missing translations in project files

! Prerequisites & Limits

  • Requires Python 3 execution environment
  • Limited to managing *.xcstrings files
  • Currently supports only Simplified Chinese (zh-Hans) and Traditional Chinese (zh-HK) translations
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

i18n-translate

Install i18n-translate, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

iOS/macOS 本地化翻译管理

管理项目中所有 *.xcstrings 文件的中文翻译,支持简体中文 (zh-Hans) 和繁体中文 (zh-HK)。

工作流程

处理翻译请求时,首先查找所有 .xcstrings 文件,然后按以下顺序执行:

0. 查找所有 .xcstrings 文件

bash
1find . -name "*.xcstrings" -not -path ".*" | head -20

1. 清理过期条目

bash
1python3 scripts/clean_stale.py <文件路径>.xcstrings

删除所有 extractionStatestale 的条目。可批量处理所有文件:

bash
1find . -name "*.xcstrings" -not -path ".*" -exec python3 scripts/clean_stale.py {} \;

2. 检查缺失翻译

bash
1python3 scripts/check_missing.py <文件路径>.xcstrings

输出缺失的 zh-Hans 和 zh-HK 翻译统计。可批量检查:

bash
1for f in $(find . -name "*.xcstrings" -not -path ".*"); do 2 echo "=== $f ===" 3 python3 scripts/check_missing.py "$f" 4done

3. 添加翻译

bash
1python3 scripts/add_translation.py <文件路径>.xcstrings "Key" "简体中文翻译" "繁體中文翻譯"
  • <文件路径>.xcstrings: 目标文件路径(必需)
  • Key: 条目的 key(必需)
  • zh-Hans: 简体中文翻译(必需)
  • zh-HK: 繁体中文翻译(可选,未提供时自动转换)

4. 验证文件

bash
1python3 scripts/validate.py <文件路径>.xcstrings

验证 JSON 格式正确性并统计翻译完成度。可批量验证:

bash
1for f in $(find . -name "*.xcstrings" -not -path ".*"); do 2 echo "=== $f ===" 3 python3 scripts/validate.py "$f" 4done

批量处理所有文件

使用 batch_process.py 脚本一次性处理所有 .xcstrings 文件:

bash
1# 列出所有 .xcstrings 文件 2python3 scripts/batch_process.py list 3 4# 批量清理所有文件的过期条目 5python3 scripts/batch_process.py clean 6 7# 批量检查所有文件的缺失翻译 8python3 scripts/batch_process.py check 9 10# 批量验证所有文件的格式 11python3 scripts/batch_process.py validate 12 13# 指定项目目录 14python3 scripts/batch_process.py validate --dir /path/to/project

翻译原则

  • 占位符保持不变: %@, %lld, %1$@, %d 等格式化占位符必须原样保留
  • 技术术语: API, SQLite, Host 等专有名词可保持英文
  • UI 文本: 简洁明了,符合 macOS/iOS 应用习惯
  • 简繁转换: add_translation.py 包含常见词汇的简繁转换映射

使用示例

用户: 检查项目所有 xcstrings 文件缺少的翻译
→ 运行 batch_process.py list 查看所有文件
→ 运行 batch_process.py check 检查所有文件

用户: 为 Core.xcstrings 中的 "Copy" 添加翻译
→ 运行 add_translation.py Core/Core.xcstrings "Copy" "拷贝" "拷貝"

用户: 清理所有 xcstrings 文件中过期的翻译条目
→ 运行 batch_process.py clean

用户: 验证所有翻译文件的格式和完成度
→ 运行 batch_process.py validate

用户: 处理特定目录下的翻译文件
→ 运行 batch_process.py check --dir ./Modules

注意事项

  • 所有操作会直接修改指定的 .xcstrings 文件
  • 修改前建议先备份文件
  • JSON 缩进使用 2 个空格
  • 编码必须是 UTF-8
  • 批量处理时使用 find 命令过滤掉隐藏文件(.*/.*

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is i18n-translate?

Perfect for Localization Agents needing automated translation management for iOS and macOS platforms. A player for Apple platform

How do I install i18n-translate?

Run the command: npx killer-skills add CofficLab/Cisum/i18n-translate. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for i18n-translate?

Key use cases include: Automating translation updates for iOS and macOS projects, Cleaning stale entries in *.xcstrings files using Python scripts, Checking for missing translations in project files.

Which IDEs are compatible with i18n-translate?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for i18n-translate?

Requires Python 3 execution environment. Limited to managing *.xcstrings files. Currently supports only Simplified Chinese (zh-Hans) and Traditional Chinese (zh-HK) translations.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add CofficLab/Cisum/i18n-translate. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use i18n-translate immediately in the current project.

Related Skills

Looking for an alternative to i18n-translate or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI