Skip to content
Back to skills

Ios Localization

ASecurity

Here’s a quick-start example using modern iOS localization with a String Catalog. 1. In Xcode, add a `Localizable.xcstrings` String Catalog. 2. Add a key like `welcome.title`. 3. Provide a Base value such as `Welcome`. 4. Add translations for each supported language. SwiftUI: ```swift import SwiftUI struct WelcomeView: View { var body: some View { VStack(spacing: 12) { Text(String(localized: "welcome.title")) Text( Date.now.formatted( date: .abbreviated, time: .omitted ) ) } .padding() } } ``...

  • 584 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentgoswift

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill ios-localization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ios Localization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ios Localization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-ios-localization-203f0d81/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-ios-localization-203f0d81)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Here’s a quick-start example using modern iOS localization with a String Catalog.

1. In Xcode, add a `Localizable.xcstrings` String Catalog.
2. Add a key like `welcome.title`.
3. Provide a Base value such as `Welcome`.
4. Add translations for each supported language.

SwiftUI:

```swift
import SwiftUI

struct WelcomeView: View {
    var body: some View {
        VStack(spacing: 12) {
            Text(String(localized: "welcome.title"))

            Text(
                Date.now.formatted(
                    date: .abbreviated,
                    time: .omitted
                )
            )
        }
        .padding()
    }
}
```

If you want interpolation, add a catalog entry like `greeting.message = Hello, %@` and use:

```swift
let name = "Ava"
let message = String(
    localized: "greeting.message",
    defaultValue: "Hello, %@"
)
let text = String(format: message, locale: .current, name)
```

A few good defaults:

- Use `String(localized:)` or `LocalizedStringResource` instead of `NSLocalizedString`.
- Keep Base localization complete before adding other languages.
- Put images in `.xcassets` rather than loose files.
- Use built-in locale-aware formatting for dates, numbers, and currency.
```

Files in this skill

  • eval-1.baseline.md1.2 KB
  • eval-1.with-skill.md1.4 KB
  • eval-2.baseline.md1.3 KB
  • eval-2.with-skill.md686 B
  • eval-3.baseline.md656 B
  • eval-3.with-skill.md1.2 KB
  • trigger-1.md183 B
  • trigger-2.md142 B
  • trigger-3.md119 B
  • trigger-4.md150 B
  • trigger-5.md128 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.