localization-pro
Skill8 starsChanged 12 days agoMITView on GitHub
Audits and fixes localization in SwiftUI and Jetpack Compose apps — String Catalogs and a typed Strings facade, strings.xml and positional arguments, plurals, locale-aware formatting, right-to-left layout, translator comments, and pseudo-localization. Use when adding a language, before a localized release, when strings are hardcoded or concatenated, or when RTL or plural output looks wrong.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- android-accessibility-proSkill
- android-adaptive-layout-proSkill
- android-compose-proSkill
- android-coroutines-proSkill
- android-design-system-proSkill
- android-gradle-architecture-proSkill
- android-library-proSkill
- android-memory-storage-proSkill
- android-modularization-proSkill
- app-intents-proSkill
- beta-deployment-proSkill
- coredata-swift6-proSkill
- cross-platform-parity-proSkill
- flaky-tests-proSkill
- foundation-models-proSkill
- instruments-profiling-proSkill
- linting-proSkill
- motion-design-proSkill
- r8-shrink-proSkill
- store-compliance-proSkill
- swift-accessibility-proSkill
- swift-adaptive-layout-proSkill
- swift-concurrency-proSkill
- swiftdata-proSkill
- swift-design-system-proSkill
- swift-docc-proSkill
- swift-error-handling-proSkill
- swift-library-proSkill
- swift-logging-proSkill
- swift-memory-storage-proSkill
- swift-modularization-proSkill
- swift-package-proSkill
- swift-testing-proSkill
- swiftui-proSkill
- visionos-proSkill
- xcode-security-proSkill
- xml-to-compose-migration-proSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Hardcoded strings: Search UI code for literal strings in Text(, Button(, alerts, contentDescription, and accessibility labels.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Make every user-facing string translatable, correctly pluralized, formatted for the reader's locale, and laid out for right-to-left languages. This is the deep companion to the always-on apple-localization-best-practices.md and android-localization-best-practices.md rules. Report only genuine problems.
Load only the reference for the platform in scope:
references/apple.md— String Catalogs, the typedStringsfacade withLocalizedStringResource, SwiftUI usage, plural variations,FormatStyle, RTL, translator comments, Xcode 27 catalog tooling, and pseudolanguages.references/android.md—strings.xmllayout and naming,stringResource/pluralStringResource, positional format arguments,<plurals>,java.timeandNumberFormat, RTL withstart/end, translator comments, other resource types, and the translation pipeline.
Audit Process
- Hardcoded strings. Search UI code for literal strings in
Text(,Button(, alerts,contentDescription, and accessibility labels. Each must come from the facade or a string resource. - Sentence building. Flag string concatenation and Kotlin or Swift interpolation that builds a sentence outside a localized resource.
- Plurals. Flag
count == 1ternaries andifbranches choosing between singular and plural words. - Format arguments. Android: bare
%s/%din strings with two or more arguments. Apple:String(format:)for user-visible values. - Formatting. Number, date, and currency output goes through locale-aware formatters; no per-render formatter allocation.
- Right-to-left.
.left/.rightorleft/rightin layout code; directional images that don't mirror; AndroidsupportsRtlmissing. - Translator context. Entries without comments, ambiguous keys, and brand names not marked do-not-translate.
- Verify with the pseudolanguages (Double-Length, Accented, Right-to-Left) or Force RTL on the screens you changed.
Output Format
Group findings by severity: blocking (hardcoded or concatenated user-facing text, wrong plurals, crashes from mismatched format types), degraded (locale-unaware formatting, RTL breakage, missing translator comments), polish (key naming, formatter caching). Give each as file:line, what a reader in another language sees, and the fix with before/after. End with the count per severity and the first three fixes.
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.

