Small reusable skill and helper script for switching an iOS Simulator to a target system language and region.
It writes the simulator's global AppleLanguages and AppleLocale, reboots the simulator, waits for boot completion, and prints the effective values back for verification.
SKILL.md— agent-facing instructions for when and how to use the workflowset-simulator-locale.sh— shell helper that performs the locale switch and reboot
.
├── README.md
├── scripts
│ └── set-simulator-locale.sh
└── SKILL.md
Make the helper executable first:
chmod +x scripts/set-simulator-locale.shRun the helper with:
./scripts/set-simulator-locale.sh <simulator-target> <language-code> <locale-code>Examples:
./scripts/set-simulator-locale.sh booted fr fr_FR
./scripts/set-simulator-locale.sh booted ja ja_JP
./scripts/set-simulator-locale.sh "iPhone Air" es es_ESThe first argument can be:
bootedto target the currently booted simulator- a simulator UDID
- a simulator device name, such as
iPhone Air
- This changes the simulator's system-wide locale, not per-app launch arguments.
- After switching locale, launch the app again if you want to verify localized UI behavior.
- Useful for localization QA, screenshot generation, and widget/runtime sanity checks across supported locales.