swift-localization

swift-localization is a skill for Codex from JakubMikolajek/codex-skills-collection. It costs 75 tokens per session (1,294 once invoked), scanned A, original, MIT.

A set of practices for translating and formatting text in Swift and SwiftUI apps. It covers Apple localization files, translated strings, plural forms, dates, numbers, and right-to-left languages.

In plain words
What is it for?
Adding or reviewing String Catalogs, localized SwiftUI text, pluralization, locale-aware values, and multilingual interface behavior.
Why use it?
It prevents untranslated text, incorrect grammar, broken formatting, and layout problems when an app supports multiple languages.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Adding or reviewing String Catalogs, localized SwiftUI text, pluralization, locale-aware values, and multilingual interface behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/swift-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 JakubMikolajek/codex-skills-collection --skill swift-localization
Clone the repo
git clone --depth 1 https://github.com/JakubMikolajek/codex-skills-collection

Made for: Codex.

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 swift-localization

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swift-localization/github.svg)](https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swift-localization)
Your own site
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swift-localization"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swift-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 swift-localization

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swift-localization"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swift-localization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,294 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.00075 $0.01294
Opus 5.5 $0.00030 $0.00518
Sonnet 5.5 $0.00015 $0.00259
Haiku 4.5 $0.00007 $0.00129

Measured 19d ago against content hash e29c69bbe927, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swift-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 19d 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.

skills/swift-localization/SKILL.md · 121 lines

How it starts

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

Swift Localization Patterns

Use this skill for multilingual Swift and SwiftUI work with a bias toward modern Apple localization workflows. Assume the goal is not only translating strings, but keeping keys, formatting, grammar, and UI behavior correct across many locales.

Delivery Workflow

Use the checklist below and track progress:

Swift localization progress:
- [ ] Step 1: Discover the current localization assets and project convention
- [ ] Step 2: Define key strategy and translator context
- [ ] Step 3: Implement localized strings, pluralization, and formatting
- [ ] Step 4: Verify multi-locale UI behavior
- [ ] Step 5: Review missing translations, fallbacks, and regressions

Project Assumptions

  • Prefer the repository's existing localization mechanism first.
  • If the project is already on modern Apple localization workflows, prefer String Catalogs (.xcstrings).
  • If the project still uses Localizable.strings or related legacy resources, stay consistent unless the task explicitly includes migration.
  • Do not mix multiple localization strategies inside one feature without a reason.

Keys and Source Strategy

  • Keep one clear convention for how translatable content is identified.
  • Reuse the project's existing key style:
    • semantic keys if the codebase uses them
    • source-string keys if the codebase already relies on them
  • Keep keys stable; changing them casually creates unnecessary translation churn.
  • Add translator-facing context when the meaning is ambiguous.
  • Keep domain-specific strings grouped coherently by feature, screen, or table where the project pattern supports it.

Localized Access Patterns

  • Use localized APIs intentionally instead of hardcoding user-facing copy.
  • Distinguish localized text from verbatim/debug/internal strings.
  • Keep the UI layer declarative: localized display strings in views, business meaning in models and services.
  • Prefer explicit localized resources for non-UI strings that are reused or passed across layers.
  • Avoid hiding localization lookups inside random helpers where call sites lose meaning.

Read the full file on GitHub · 121 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 19d ago Changed · +5 lines e29c69bbe927
  2. 1mo ago First seen · 116 lines · 75 tokens per session scan A fc96fe0b8e22

Subscribe to this mod's changes

swift-localization is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (6 stars, last pushed 20d ago), licensed MIT. It adds 75 tokens to every session and 1,294 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

swift-formatstyle-macos

FormatStyle on macOS — Date.FormatStyle, Number.FormatStyle, Measurement.FormatStyle, List.FormatStyle, Duration.TimeFormatStyle, custom FormatStyle conformances, formatting for menu items/status bar/inspector/large-number display in Table columns. Use when formatting values for display in macOS UI.

LaughingJackalope/macos-skills · 67 tokens

swift-swiftui-localization

Implement, audit, and maintain localization in Swift and SwiftUI apps using String Catalogs (.xcstrings), LocalizedStringResource, LocalizedStringKey, Text native localization, String(localized:), compiler string extraction, generated string symbols, Xcode build settings, and xcstringstool sync. Use when adding…

shahid0/mobile-development-ai-skills · 121 tokens

kotlin-specialist

Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…

Jeffallan/claude-skills · 86 tokens

ink-custom-brush-builder

Creates custom BrushFamily definitions for an Android app using Jetpack Ink (androidx.ink 1.1.0-alpha03 and higher). Use this skill when configuring custom BrushTip shapes, adding pressure, tilt, speed, or noise sensitivity using BrushBehavior node graphs, creating multi-coat layered brushes, applying tiling or…

android/skills · 159 tokens

swiftui-dev

Use this skill for SwiftUI development, architecture, structure, performance, and Apple native app profiling. It combines.

Orkas-AI/Orkas · 3 tokens

axiom-concurrency

Use when writing ANY async code, actors, or threads in an Apple-platform app, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 49 tokens