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★ 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, fastlanerelease_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.xcstringscatalog, 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:ortableName:argument, or intoLocalizable.xcstringswithout 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:)needsSWIFT_EMIT_LOC_STRINGS = YESon the target. A SwiftUITextliteral also extracts throughLOCALIZED_STRING_SWIFTUI_SUPPORT(defaultYES), so check both settings before blaming the catalog. - Xcode never extracts a string that reaches the API through a plain
Stringvariable. Keep the literal inside a localizable API call, such asText("..."),String(localized: "..."), orLocalizedStringResource("..."); aLocalizedStringResourcevalue may then be stored and passed on. - A build emits
.stringsdata, andxcstringstool syncmerges those keys into the catalog:- Build the owning target.
- Locate only its emitted data with
find <DerivedData> -path '*/<Target>.build/*' -name '*.stringsdata'. - Back up the catalog.
- Run
xcrun xcstringstool sync <catalog> --stringsdata <file> --skip-marking-strings-stale. Use default stale deletion only when removal is explicitly in scope. - 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.dumpsround-trip is not byte-identical to Xcode's formatting, so never rewrite the file wholesale, however many values are missing.
Complete when the
Установить ios-localize-copy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic