localization

localization is a skill for Claude Code from markdavidgan/apple-dev-skills. It costs 111 tokens per session (1,216 once invoked), scanned A, original, MIT.

A guide to translating an app and adapting it for different languages and regions. It explains String Catalogs, plural forms, right-to-left layouts, locale-aware formatting, and pseudolocalization, which uses test text to expose layout problems.

In plain words
What is it for?
It helps add languages, provide translator context, handle plurals and gendered wording, format regional values, support right-to-left languages, and test localized screens.
Why use it?
It prevents translations that are grammatically wrong, unusable in another writing direction, or broken by different dates, numbers, and text lengths.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the apple-dev-skills plugin — 62 skills, 25 commands, 7 agents shipped together

Good fit It helps add languages, provide translator context, handle plurals and gendered wording, format regional values, support right-to-left languages, and test localized screens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markdavidgan/apple-dev-skills/localization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add markdavidgan/apple-dev-skills --skill localization
Clone the repo
git clone --depth 1 https://github.com/markdavidgan/apple-dev-skills

Made for: Claude Code.

Or install apple-dev-skills, the plugin that ships this one along with the rest of its 62 skills, 25 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for localization

README.md
[![agentmods](https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/localization/github.svg)](https://agentmods.dev/skills/markdavidgan/apple-dev-skills/localization)
Your own site
<a href="https://agentmods.dev/skills/markdavidgan/apple-dev-skills/localization"><img src="https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/localization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for localization

Your own site · 80×15
<a href="https://agentmods.dev/skills/markdavidgan/apple-dev-skills/localization"><img src="https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/localization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.01216
Opus 5.5 $0.00044 $0.00486
Sonnet 5.5 $0.00022 $0.00243
Haiku 4.5 $0.00011 $0.00122

Measured 1mo ago against content hash 4f044b234e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

localization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

platforms/claude/skills/localization/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Localization & Internationalization

Make the app correct in every language — not just translated, but grammatical, well-formatted, and laid out right. Marketing/keyword localization for the store is asc-aso; this is the app itself.


String Catalogs (.xcstrings) — the modern way

Add a String Catalog (Localizable.xcstrings). Xcode extracts strings from Text("…"), String(localized:), and LocalizedStringResource automatically and tracks translation state per language.

Text("Welcome")                                   // SwiftUI localizes automatically
let msg = String(localized: "Welcome")            // non-SwiftUI code
let resource: LocalizedStringResource = "Welcome" // pass localizable strings around
  • Give translators context with a comment: Text("Open", comment: "Verb — opens the document"). "Open" the verb vs adjective translate differently.
  • Never build sentences by concatenation. Text("You have \(n) items") is one interpolated key; Text("You have ") + Text("\(n)") + Text(" items") is untranslatable word-order garbage.
  • SwiftUI string literals are localized by default; non-literal Text(someString) is not — wrap with LocalizedStringKey/String(localized:) deliberately.

Plurals & grammar agreement

Languages have 1–6 plural categories (English 2, Arabic 6, Japanese 1). Don't hand-roll if n == 1.

  • In the String Catalog, set a key to vary by plural and provide the zero/one/two/few/many/other forms the language needs. The catalog applies the right one for the count automatically.
  • Use automatic grammar agreement for inflection: ^[\(count) item](inflect: true) pluralizes the noun to match the number in supported languages.
  • Vary strings by device (iPhone vs iPad wording) and by gender/term where the catalog supports it.

Right-to-left (RTL)

  • Use leading/trailing, never left/right, in layout and padding — SwiftUI then mirrors automatically for Arabic/Hebrew.
  • Mirror directional SF Symbols correctly (most do automatically; check chevrons/arrows).
  • Test by forcing it: scheme → Run → Options → App Language: Right-to-Left Pseudolanguage, or .environment(\.layoutDirection, .rightToLeft) in a preview.
  • Numbers, code, and some content stay LTR inside RTL text — let the system handle bidi; don't reorder manually.

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 90 lines · 111 tokens per session scan A 4f044b234e2a

Subscribe to this mod's changes

localization is a skill published in the GitHub repository markdavidgan/apple-dev-skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 111 tokens to every session and 1,216 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

asc-localize-metadata

Automatically translate and sync App Store metadata (description, keywords, what's new, subtitle) to multiple languages using LLM translation and asc CLI. Use when asked to localize an app's App Store listing, translate app descriptions, or add new languages to App Store Connect.

rorkai/app-store-connect-cli-skills · 60 tokens

asc-metadata-sync

Sync, validate, and apply App Store metadata and store assets with asc. Use when updating localizations, keywords, App Clip or preview assets, Asset Library media and placements, or migrating legacy fastlane metadata.

rorkai/app-store-connect-cli-skills · 47 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

asc-whats-new-writer

Generate engaging, localized App Store release notes (What's New) from git log, bullet points, or free text using canonical metadata under ./metadata. Optionally pairs with promotional text updates.

rorkai/app-store-connect-cli-skills · 45 tokens

asc-in-app-events

Create and localize App Store in-app events, upload event media, and submit or recover event review submissions with asc. Use when managing in-app events, event card or details page assets, or event-specific submission errors.

rorkai/app-store-connect-cli-skills · 49 tokens

asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rorkai/app-store-connect-cli-skills · 45 tokens