Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ios-localize-copy

БесплатноБез исполняемых скриптовНе проверен

WHEN translating, localizing, syncing, or validating user-facing iOS copy in `.xcstrings` String Catalogs, App Store release notes, or App Store screenshot…

mintuzот mintuz★ 38 звёзд на GitHub

Об этом скилле

iOS Localize Copy

Treat every localized string as a runtime contract.

1. Establish scope and locale truth

  • Classify the request as an edit, a review, or localized App Store metadata (whatsNew, fastlane release_notes.txt, or screenshot caption copy). Keep metadata out of scope unless the user requests it; never edit stale metadata, and name it in the handoff as a separate task.
  • Inspect Xcode knownRegions, every relevant .xcstrings catalog, and App Store metadata locale directories or configuration, and record each locale set. Resolve mismatches from project evidence before translating; where evidence does not resolve a mismatch, ask the user to classify the locale before translating.
  • Inspect repository guidance, the current diff, and existing localization validators. Preserve unrelated work.
  • Audit before editing: load each catalog as JSON and report keys against locales, the state counts (translated, new, needs_review), and the exact missing-key list for each locale.

Complete when every discovered locale is classified as supported or excluded with evidence, the permitted files are explicit, and the audit table exists.

2. Build the copy inventory

  • Derive the target keys from the request and current diff.
  • Trace each key or source literal to its call sites. Read the surrounding UI, comments, tests, and screenshots needed to identify audience, action, feature terminology, length constraints, plural rules, and tone.
  • For every target, record the catalog's declared source-language value, key, visible context, placeholders, URLs, Markdown link targets, and intentional whitespace.

When an expected key is absent from the catalog, check these extraction rules before adding the key by hand:

  • A string extracts into the catalog named by its table: or tableName: argument, or into Localizable.xcstrings without one. A custom catalog name whose call sites pass no table name is the usual reason a catalog stays empty after a build.
  • The catalog file needs target membership. Compiler extraction of APIs such as String(localized:) needs SWIFT_EMIT_LOC_STRINGS = YES on the target. A SwiftUI Text literal also extracts through LOCALIZED_STRING_SWIFTUI_SUPPORT (default YES), so check both settings before blaming the catalog.
  • Xcode never extracts a string that reaches the API through a plain String variable. Keep the literal inside a localizable API call, such as Text("..."), String(localized: "..."), or LocalizedStringResource("..."); a LocalizedStringResource value may then be stored and passed on.
  • A build emits .stringsdata, and xcstringstool sync merges those keys into the catalog:
    1. Build the owning target.
    2. Locate only its emitted data with find <DerivedData> -path '*/<Target>.build/*' -name '*.stringsdata'.
    3. Back up the catalog.
    4. Run xcrun xcstringstool sync <catalog> --stringsdata <file> --skip-marking-strings-stale. Use default stale deletion only when removal is explicitly in scope.
    5. Inspect the structural diff before accepting the sync.

Complete when every target key has a declared source-language baseline, a verified UI meaning, and a runtime-contract signature.

3. Localize in context

Skip these two routes; both cost time and return nothing:

  • Xcode's "Generate Translations" command cannot be driven reliably through GUI automation.
  • The on-device Translation framework CLI blocks on a model-download prompt that a headless process cannot answer.

Then localize:

  • Build a glossary from the catalog's existing translations so new work reuses the shipped term for each concept instead of inventing synonyms. Keep one glossary per locale for product domain terms, so machine output leaves no English terms embedded.
  • Check every candidate value, including user-supplied ones, against the glossary; where the candidate is a synonym of a shipped term, use the shipped term.
  • Translate every target key for every supported locale using native, context-appropriate iOS and product terminology.
  • Preserve placeholder types and order, Markdown and plain URL targets, escaped characters, intentional line breaks and surrounding whitespace, source-key alignment, and variations. Preserve the catalog state of every entry you do not change; update the state only for an entry whose value you change or whose current value you have explicitly reviewed.
  • Reorder arguments only with positional markers, such as %1$@ and %2$lld, each matching the conversion type of the source argument it points at. Never reorder a bare %@.
  • Keep the catalog's declared source language authoritative. Change call sites only when required to connect the approved copy, and leave unrelated catalog entries untouched.
  • Copy the catalog to a backup outside the repository tree, then merge each value in place. A json.dumps round-trip is not byte-identical to Xcode's formatting, so never rewrite the file wholesale, however many values are missing.

Complete when the

Полный SKILL.md на GitHub

Установить ios-localize-copy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл ios-localize-copy?

WHEN translating, localizing, syncing, or validating user-facing iOS copy in `.xcstrings` String Catalogs, App Store release notes, or App Store screenshot caption copy; NOT for keyword optimization, screenshot image design or upload, binary upload, or App Review submission; preserves locale coverage and runtime text contracts, and encodes catalog extraction, format-specifier, and validation rules.

Как установить скилл ios-localize-copy?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ios-localize-copy запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ios-localize-copy с