Xcode (iOS / macOS)
Supported formats: .xcstrings (recommended), .strings, .stringsdict, .xliff
Quick Start
bash
cd MyApp
localekit scan # Detects Xcode project
localekit status --detailed # Shows per-language coverage
localekit translate --engine deepl --languages de-DE,fr-FR,ja-JPXcode 15+
If your project uses .xcstrings (String Catalogs), LocaleKit handles it natively — including plurals and device variations.
LocaleKit reads your existing localization files, translates missing keys, and writes back in the same format. No project configuration changes needed.
Automate on Build
Add a Run Script build phase to translate new keys every time you build.
- In Xcode, select your target → Build Phases → + → New Run Script Phase
- Name it LocaleKit Translate
- Drag it above the Compile Sources phase
- Paste the following script:
bash
if command -v localekit &> /dev/null; then
localekit translate --engine deepl --languages de-DE,fr-FR,ja-JP
fiINFO
The if guard ensures the build succeeds even if LocaleKit is not installed (e.g. on a teammate's machine or CI without the CLI).
Each build will now detect untranslated keys and fill them in automatically.
