localization

Implements i18n for SwiftUI and UIKit apps with String Catalogs, pluralization, and RTL support.

223|21|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill localization-johnrogers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: localization
Source: https://github.com/johnrogers/claude-swift-engineering/tree/main/plugins/swift-engineering/skills/localization
Command: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill localization-johnrogers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Swift iOS/macOS apps often wrestle with localization, pluralization, and RTL support, causing inconsistent translations and UI quirks across locales; this skill provides curated patterns, references, and workflows to streamline internationalization in Swift projects.

Core Features & Use Cases

  • String Catalog workflows: guidance on using Xcode String Catalogs with LocalizedStringKey in SwiftUI for automatic extraction and translation.
  • Pluralization patterns: strategies for handling language-specific plural forms and stringsdict migrations.
  • RTL and locale-aware UI: techniques for semantic directions, image mirroring, and layout adaptation.
  • Use Case: implement localization in a new SwiftUI app and validate across sample locales with pseudo-localization.

Quick Start

Implement a SwiftUI localization workflow by enabling LocalizedStringKey usage and String Catalogs, then test across locales with pseudo-localization.

Frequently Asked Questions about localization

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

FAQPage Schema
What's the best way to localize a SwiftUI app using String Catalogs?

The best way to localize a SwiftUI app is by using Xcode 15+ String Catalogs with LocalizedStringKey, which allows automatic extraction and translation of UI text for consistent internationalization across iOS and macOS.

How do I handle pluralization in Swift when migrating from stringsdict?

Handle pluralization in Swift by applying language-specific plural patterns and migrating from legacy stringsdict files to String Catalogs, ensuring your iOS or macOS app correctly adapts to varying plural rules.

How does RTL layout support work in SwiftUI and UIKit?

RTL layout support in SwiftUI and UIKit works by applying semantic directions, image mirroring, and layout adaptation techniques to ensure bidirectional text and UI elements render correctly across different locales.

Can I use pseudo-localization to test my iOS app for locale-aware UI issues?

Yes, you can use pseudo-localization to test your iOS app by validating localization workflows across sample locales, helping you identify UI quirks and layout issues before deploying actual translations.

Does Xcode 15 String Catalogs support both UIKit and SwiftUI workflows?

Xcode 15 String Catalogs support both UIKit and SwiftUI workflows, providing curated patterns and references to streamline internationalization, pluralization, and RTL support across Swift iOS and macOS projects.

Why does my SwiftUI localized text show inconsistent translations across different locales?

Inconsistent translations in SwiftUI often stem from improper LocalizedStringKey usage or missing plural rules, which can be resolved by adopting Xcode 15+ String Catalogs and applying consistent locale-aware formatting.