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

v1.0.0

关于此技能

Perfect for Localization Agents needing streamlined iOS and macOS translation management for .xcstrings files. 管理 iOS/macOS 应用的 *.xcstrings 本地化翻译文件。自动清理过期条目、检测缺失翻译、添加简繁体中文翻译。当用户需要处理翻译、补充缺失的 zh-Hans/zh-HK 翻译、或清理 *.xcstrings 文件时使用此 skill。

# 核心主题

CofficLab CofficLab
[3]
[0]
更新于: 3/9/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
36
Canonical Locale
zh
Detected Body Locale
zh

Perfect for Localization Agents needing streamlined iOS and macOS translation management for .xcstrings files. 管理 iOS/macOS 应用的 *.xcstrings 本地化翻译文件。自动清理过期条目、检测缺失翻译、添加简繁体中文翻译。当用户需要处理翻译、补充缺失的 zh-Hans/zh-HK 翻译、或清理 *.xcstrings 文件时使用此 skill。

核心价值

Empowers agents to efficiently manage Chinese translations, including Simplified Chinese (zh-Hans) and Traditional Chinese (zh-HK), by automating the cleaning of stale entries and checking for missing translations using Python scripts.

适用 Agent 类型

Perfect for Localization Agents needing streamlined iOS and macOS translation management for .xcstrings files.

赋予的主要能力 · i18n-translate

Automating the cleaning of stale entries in .xcstrings files
Generating reports on missing Chinese translations for iOS and macOS projects
Streamlining the localization process for Chinese translations in .xcstrings files

! 使用限制与门槛

  • Requires Python 3 execution environment
  • Limited to managing .xcstrings files for iOS and macOS projects
  • Only supports Chinese translations (Simplified and Traditional)

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 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

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

i18n-translate 是什么?

Perfect for Localization Agents needing streamlined iOS and macOS translation management for .xcstrings files. 管理 iOS/macOS 应用的 *.xcstrings 本地化翻译文件。自动清理过期条目、检测缺失翻译、添加简繁体中文翻译。当用户需要处理翻译、补充缺失的 zh-Hans/zh-HK 翻译、或清理 *.xcstrings 文件时使用此 skill。

如何安装 i18n-translate?

运行命令:npx killer-skills add CofficLab/GitOK/i18n-translate。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

i18n-translate 适用于哪些场景?

典型场景包括:Automating the cleaning of stale entries in .xcstrings files、Generating reports on missing Chinese translations for iOS and macOS projects、Streamlining the localization process for Chinese translations in .xcstrings files。

i18n-translate 支持哪些 IDE 或 Agent?

该技能兼容 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。可使用 Killer-Skills CLI 一条命令通用安装。

i18n-translate 有哪些限制?

Requires Python 3 execution environment;Limited to managing .xcstrings files for iOS and macOS projects;Only supports Chinese translations (Simplified and Traditional)。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add CofficLab/GitOK/i18n-translate。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    i18n-translate 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

i18n-translate

安装 i18n-translate,这是一款面向AI agent workflows and automation的 AI Agent Skill。支持 Claude Code、Cursor、Windsurf,一键安装。

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

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 命令过滤掉隐藏文件(.*/.*

相关技能

寻找 i18n-translate 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具