swift-localization
Installation
SKILL.md
Swift Localization
Lifecycle Position
Phase 3 (Implement). Load when adding user-facing text to ensure localization-readiness from the start.
Modern API (String Catalogs)
String(localized:)
// Basic localized string
let greeting = String(localized: "welcome_message")
// With default value and comment for translators
let greeting = String(localized: "welcome_message",
defaultValue: "Welcome back!",
comment: "Greeting shown on home screen after login")