ios-localization
Skill1 starsChanged 14 days agoMITView on GitHub
Localize an iOS app with String Catalogs — making strings localizable in SwiftUI and UIKit, plurals and variations, formatting dates/numbers/units, right-to-left layout, adding a language, agent or machine translation with human review, XLIFF export, and checking translation coverage. Use when adding a language, making new UI text translatable, fixing untranslated or truncated strings, supporting RTL, or reviewing a change for hard-coded copy.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- thienqo/ios-skillstheir own version, first seen Oct 11, 2026
- Drozdetskiy/claude-skillstheir own version, first seen Jul 7, 2026
- rusel95/ios-agent-skillstheir own version, first seen Apr 16, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- rusel95/ios-agent-skills★ 13same name
- thienqo/ios-skills★ 4same name
- Drozdetskiy/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ios-accessibility-auditSkill
- ios-api-contract-migrationSkill
- ios-api-endpointSkill
- ios-app-intents-siriSkill
- ios-bug-triageSkill
- ios-build-configurationSkill
- ios-cloudkit-syncSkill
- ios-combine-patternsSkill
- ios-commit-and-prSkill
- ios-commitSkill
- ios-concurrency-auditSkill
- ios-coreml-apple-intelligenceSkill
- ios-deep-linkingSkill
- ios-dependency-assessmentSkill
- ios-design-fixSkill
- ios-feature-moduleSkill
- ios-knowledge-baseSkill
- ios-latest-os-adoptionSkill
- ios-offline-writeSkill
- ios-performance-tuningSkill
- ios-port-from-androidSkill
- ios-port-to-androidSkill
- ios-precommitSkill
- ios-privacy-complianceSkill
- ios-push-and-background-tasksSkill
- ios-refactorSkill
- ios-release-prepSkill
- ios-sdk-upgradeSkill
- ios-secure-reviewSkill
- ios-storekit-subscriptionsSkill
- ios-swift6-concurrency-migrationSkill
- ios-swiftdataSkill
- ios-swift-testing-migrationSkill
- ios-swiftui-screenSkill
- ios-unit-testsSkill
- ios-widgetkit-live-activitiesSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Use leading/trailing, never left/right.
- Distinctive: line 46
Test with the scheme's *App Language* set to a pseudolanguage (double-length, right-to-left) before real translations exist.
- Distinctive: line 64
Run the app in each language on the smallest supported device at a large Dynamic Type size.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Localization with String Catalogs
Localization is mostly done while writing code, not at the end: every user-facing string, number and date must go through the localization system the first time it's written.
1. Make strings localizable
- SwiftUI: string literals passed to
Text,Button,Labeland similar areLocalizedStringKeys and are extracted automatically. AStringvariable passed toTextis not localized — pass aLocalizedStringResourceor useString(localized:)where the value is built. - UIKit / non-view code:
String(localized: "Order shipped", comment: "Banner after checkout"). - Always add a comment describing where the string appears. Translators (human or agent) see only the string and the comment.
- Never build sentences by concatenation (
"You have " + n + " items"). Use interpolation in a single key so translators can reorder words. - Mark strings that must stay as-is (brand names, codes) as Don't Translate. Since Xcode 27, a localization comment of "do not translate" marks them automatically.
2. String Catalogs (.xcstrings)
- One
Localizable.xcstringsper target (plusInfoPlist.xcstringsfor permission strings and the app name). Xcode extracts keys from code at build time. - Plurals and device variations are set per key in the catalog — never
if count == 1in code. Plural categories differ by language (some have zero/one/two/few/many/other). - Stale keys (no longer in code) are flagged; delete them rather than letting them pile up.
3. Format data, don't hard-code it
- Dates, numbers, currency, measurements, lists and names: use
FormatStyle(.formatted()),Measurement,PersonNameComponents, and let the user's locale decide. Never hard-code date patterns, decimal separators or currency symbols. - Store and send data in locale-independent form (ISO 8601, plain numbers); format only for display.
4. Layout and right-to-left
- Use leading/trailing, never left/right. SwiftUI mirrors automatically; check custom drawing and directional icons (use SF Symbols' RTL variants).
- Allow for text 30–50% longer than English; no fixed widths on text.
- Test with the scheme's App Language set to a pseudolanguage (double-length, right-to-left) before real translations exist.
5. Translate
- Agent translation in Xcode 27: agents can translate String Catalog strings (a feature or the whole project), and the catalog editor has a Generate Translations button. Xcode adds the languages and missing catalogs as needed.
- Machine or agent translations need review by a fluent speaker before release, at
least for core flows, legal text, payments and error messages. Exported XLIFFs mark
machine translations with
state-qualifier="leveraged-mt", so reviewers can find them. - For external translators, export with Product → Export Localizations (XLIFF in an
.xcloc) and import the result; don't hand-edit translations in two places.
6. Check coverage
- The catalog shows a completion percentage per language — every shipped language should be at 100% for the release.
- Run the app in each language on the smallest supported device at a large Dynamic Type size; look for truncation, clipped buttons and untranslated strings.
- In review (
ios-precommit), flag any user-facing string literal that bypasses the localization system.
Verification
- Every new user-facing string goes through
LocalizedStringKey,LocalizedStringResourceorString(localized:), with a comment. - No sentence concatenation; plurals handled in the catalog, not in code.
- Dates, numbers, currency and units use format styles, not hard-coded patterns.
- Layout uses leading/trailing and survives a double-length pseudolanguage and RTL.
- Machine/agent translations were reviewed by a fluent speaker for core flows.
- Every shipped language is at 100% in the catalog; stale keys removed.
- Checked in each language on a small device at a large text size.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

