generators-localization-setup

Generate String Catalog and L10n infrastructure for iOS and macOS apps.

4|1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill generators-localization-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generators-localization-setup
Source: https://github.com/AutisticAF/claude-code-apple-dev-plugin/tree/main/skills/generators-localization-setup
Command: npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill generators-localization-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a guided generator and checklist to add robust internationalization to iOS and macOS apps, reducing manual setup, inconsistent keys, and migration friction when moving from legacy .strings files to modern String Catalogs.

Core Features & Use Cases

  • String Catalog generation: Guidance to create Localizable.xcstrings and organize translations for multiple languages and device variants.
  • Type-safe accessors and helpers: Patterns and example code for generating L10n enums, SwiftUI preview helpers, runtime language switching, and pluralization support.
  • Migration & testing: Steps to migrate from .strings, export/import workflows for translators, and recommendations for unit tests and pseudo-localization to catch layout issues.
  • Use case: Ideal when adding new locales to an app, migrating existing translations into String Catalogs, or implementing runtime language selection and SwiftUI previews for multiple locales.

Quick Start

Use the generators-localization-setup skill to create a Localizable.xcstrings, add initial languages, and scaffold a type-safe L10n helper with preview and migration notes.

Frequently Asked Questions about generators-localization-setup

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

FAQPage Schema
How do I set up String Catalogs for iOS and macOS localization?

String Catalogs provide a modern localization infrastructure for iOS and macOS by generating a Localizable.xcstrings file that organizes translations for multiple languages and device variants, replacing legacy .strings files.

How do I create type-safe localization accessors in SwiftUI?

Create type-safe localization accessors in SwiftUI by generating L10n enums and SwiftUI preview helpers that provide compile-time validation of localized keys and support runtime language switching.

How do I migrate from .strings files to String Catalogs?

Migrating from .strings files to String Catalogs involves following structured migration steps that transfer existing translations into the Localizable.xcstrings format while maintaining Xcode export and import compatibility for translators.

Can I implement runtime language switching in SwiftUI without restarting the app?

Runtime language switching in SwiftUI is supported by generating L10n helper code and SwiftUI preview helpers that allow changing locales dynamically during app execution and preview sessions.

Does String Catalog localization support pluralization and device variants?

String Catalog localization supports pluralization and device variants by configuring Localizable.xcstrings entries with plural rules and device-specific strings to ensure correct rendering across iPhone and iPad form factors.

What is the best way to test iOS localization and catch layout issues?

Testing iOS localization to catch layout issues involves applying pseudo-localization techniques and unit tests against the generated L10n helpers to verify string rendering and layout constraints before release.