swiftui-localize

Analyze and refactor SwiftUI localization assets in scan, apply, and lint modes.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/ihugang/swiftui-localization-skill --skill swiftui-localize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-localize
Source: https://github.com/ihugang/swiftui-localization-skill/tree/main
Command: npx skills add https://github.com/ihugang/swiftui-localization-skill --skill swiftui-localize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the complex process of localizing SwiftUI applications, ensuring consistency, quality, and engineering-grade management of all your app's text across multiple languages.

Core Features & Use Cases

  • Comprehensive Analysis: Detects localization systems, scans for hardcoded strings, checks key naming, and identifies unused keys.
  • Automated Refactoring: Safely removes unused keys, renames keys to best practices, and updates code references.
  • Translation Quality: Enforces translation standards, performs cultural QA (e.g., zh-Hant), and checks placeholder consistency.
  • CI Integration: Provides a lint mode to act as a quality gate in your CI pipeline.
  • Use Case: Integrate this Skill into your CI pipeline to automatically catch hardcoded strings or missing translations before they reach production, ensuring a high-quality user experience for all your global users.

Quick Start

Run the swiftui-localize skill to scan your project for localization issues.

Frequently Asked Questions about swiftui-localize

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

FAQPage Schema
How do I find hardcoded strings in my SwiftUI app for localization?

Finding hardcoded strings in your SwiftUI app requires a localization tool that scans your codebase to detect text not extracted into Localizable.strings or .xcstrings files. This identifies untranslated text and enforces consistent key management.

Can I check for missing translations in iOS apps automatically?

Yes, you can check for missing translations in iOS apps automatically by integrating a linting mode into your CI pipeline. This enforces engineering best practices by acting as a quality gate to catch missing keys or placeholder inconsistencies before production deployment.

What is the best way to manage .xcstrings files for macOS applications?

The best way to manage .xcstrings files for macOS applications is using an automated refactoring tool that scans for unused keys, renames them to best practices, and updates code references. This ensures translation quality and code consistency across configurable base and target languages.

Does SwiftUI localization support cultural QA for specific languages like zh-Hant?

Yes, SwiftUI localization supports cultural QA for specific languages like zh-Hant. By enforcing translation standards and performing cultural checks, the system ensures that localized text meets regional expectations and maintains placeholder consistency across all target languages.

How do I remove unused localization keys from .stringsdict files?

To remove unused localization keys from .stringsdict files, you use an automated refactoring process that scans your project to identify orphaned keys and safely deletes them while updating code references. This maintains translation quality and reduces file bloat.