i18n-translate

Manage iOS/macOS .xcstrings localization files with Python scripts.

10|Updated Mar 23, 2024
One-click install
npx skills add https://github.com/CofficLab/Cisum --skill i18n-translate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i18n-translate
Source: https://github.com/CofficLab/Cisum/tree/main/.claude/skills/i18n-translate
Command: npx skills add https://github.com/CofficLab/Cisum --skill i18n-translate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the management of iOS/macOS localization translation files (*.xcstrings), ensuring consistency, completeness, and correctness in your app's multilingual support.

Core Features & Use Cases

  • Automated Cleanup: Removes outdated translation entries marked as stale.
  • Missing Translation Detection: Identifies keys lacking translations for Simplified Chinese (zh-Hans) and Traditional Chinese (zh-HK).
  • Translation Addition: Adds new translations for specified keys, with automatic conversion from Simplified to Traditional Chinese if needed.
  • File Validation: Verifies the JSON format and translation completeness of .xcstrings files.
  • Use Case: When preparing a new release, use this Skill to automatically clean up old translations, check for any missing Chinese translations, and add them before building the app.

Quick Start

Run the batch_process.py script to check all .xcstrings files for missing translations.

Frequently Asked Questions about i18n-translate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find missing translations in .xcstrings files?

To find missing translations in .xcstrings files, run the batch process to detect keys lacking zh-Hans and zh-HK translations. The script validates JSON format and reports translation completeness for iOS and macOS localization.

Can I automatically convert Simplified Chinese to Traditional Chinese for iOS localization?

Yes, you can automatically convert Simplified Chinese to Traditional Chinese for zh-Hans and zh-HK localization. Adding new translations triggers automatic conversion to ensure completeness in .xcstrings files.

What is the best way to clean up stale entries in xcstrings localization files?

The best way to clean up stale entries in xcstrings localization files is to run an automated cleanup script. It removes outdated translation entries marked as stale and validates JSON format correctness.

Does this work with both iOS and macOS xcstrings files?

Yes, this works with both iOS and macOS xcstrings files. It manages localization translation files across both platforms, detecting missing zh-Hans and zh-HHK translations while validating JSON format.

How do I validate JSON format and translation completeness for xcstrings?

To validate JSON format and translation completeness for xcstrings, run the Python validation scripts. They verify the JSON structure and check that all required Chinese translations are present.

Do I need Python to check for missing zh-Hans and zh-HK translations?

Yes, you need Python to check for missing zh-Hans and zh-HK translations. The Skill uses Python scripts to validate .xcstrings files and automate the detection of missing localization entries.