Ios Localization
ASecurityHere’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
Security analysis
100/100Pro scans all 12 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill ios-localization --agent claude-codeAre you the author of Ios Localization?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-ios-localization-203f0d81)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.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
- trigger-5.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.