translate-xcstrings
Skill2 starsChanged 7 months agoMITView on GitHub
Translate or normalize Xcode .xcstrings catalogs. Use when adding missing locales, reviewing terminology consistency, adding a new language, or updating Localizable.xcstrings, InfoPlist.xcstrings, and AppShortcuts.xcstrings without breaking placeholders or Xcode formatting.
In this repository5 other files it gives its agents.
- app-store-preview-pipelineSkill
- commit-messageSkill
- eas-app-store-metadataSkill
- handle-github-issueSkill
- pre-commit-reviewSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Treat the canonical workflow as reusable and the project's terminology as injectable.
- Distinctive: line 23
If the repository contains a project profile, read it before translating.
- Very specific: line 24
If no profile exists, discover catalogs and existing locales directly from the .xcstrings files before making assumptions.
- Distinctive: line 25
Keep edits surgical so Xcode-generated formatting stays reviewable.
- Very specific: line 31
Instead, explicitly tell the user that the project should add a project profile and point them to assets/xcstrings-project-profile.yaml.
- Distinctive: line 42
If the user wants the change completed in the same pass, create the profile first or alongside the translation change instead of leaving …
- Distinctive: line 46
Look for a project profile in one of these places before translating:
- Distinctive: line 53
If none exists, use the conservative defaults in project profile reference only as a temporary fallback.
- Distinctive: line 55
When the project has any non-trivial shipped locale set, English-only strings, protected brand tokens, or recurring domain terminology, …
- Very specific: line 57
Use assets/xcstrings-project-profile.yaml as the template when a project needs one.
- Distinctive: line 61
Follow workflow to discover catalogs, languages, missing keys, and requested scope.
- Distinctive: line 64
If project-specific terminology or English-only keys exist, merge them in through the profile contract described in project profile …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Translate xcstrings
Translate or normalize Apple string catalogs backed by Xcode .xcstrings files.
Use This Skill When
- the user asks to translate
Localizable.xcstrings,InfoPlist.xcstrings, orAppShortcuts.xcstrings - a catalog has missing locales or stale terminology
- a project is adding a new shipped language
- Siri / Shortcuts phrases need locale coverage
- placeholders, Markdown, or catalog structure must be preserved exactly
Required Operating Model
- Treat the canonical workflow as reusable and the project's terminology as injectable.
- If the repository contains a project profile, read it before translating.
- If no profile exists, discover catalogs and existing locales directly from the
.xcstringsfiles before making assumptions. - Keep edits surgical so Xcode-generated formatting stays reviewable.
First-Run Requirement
On the first substantial use in a new project, do not silently rely on inferred policy if the project clearly has shipped-locales or terminology decisions that should persist.
Instead, explicitly tell the user that the project should add a project profile and point them to assets/xcstrings-project-profile.yaml.
At minimum, ask the user to confirm or fill these fields:
default_target_localesfor the shipped locale setsupported_platformsfor device variation decisions and platform-specific wordingenglish_only_keysfor strings that must remain identical to English in every localebrand_tokensfor literal product or marketing tokens and any CJK spacing rules around themglossaryfor recurring domain terms that must stay consistent across catalogsvariation_policyfor project-specific rules about adding plural or device variations
If the user wants the change completed in the same pass, create the profile first or alongside the translation change instead of leaving those rules trapped in prompts, instructions, or agent memory.
Project Profile
Look for a project profile in one of these places before translating:
xcstrings-project-profile.yaml.ai/xcstrings-project-profile.yaml.github/xcstrings-project-profile.yaml- another path explicitly provided by the user
If none exists, use the conservative defaults in project profile reference only as a temporary fallback.
When the project has any non-trivial shipped locale set, English-only strings, protected brand tokens, or recurring domain terminology, explicitly tell the user that a project profile should be created before this workflow becomes routine.
Use assets/xcstrings-project-profile.yaml as the template when a project needs one.
Procedure
- Follow workflow to discover catalogs, languages, missing keys, and requested scope.
- Apply catalog-specific rules from catalog rules.
- Preserve Xcode formatting and split long runs using editing safety.
- If project-specific terminology or English-only keys exist, merge them in through the profile contract described in project profile reference.
Exit Criteria
- requested files, keys, and locales are covered
- placeholders, Markdown, tokens, and
AppShortcutsphrase counts are preserved - terminology decisions are consistent within each locale
- the diff only touches intended keys
- the final summary reports touched catalogs, languages, and any glossary decisions worth remembering
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.

