Skip to content
v0.9.13

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-JP

Xcode 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.

  1. In Xcode, select your target → Build Phases+New Run Script Phase
  2. Name it LocaleKit Translate
  3. Drag it above the Compile Sources phase
  4. Paste the following script:
bash
if command -v localekit &> /dev/null; then
  localekit translate --engine deepl --languages de-DE,fr-FR,ja-JP
fi

INFO

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.

LocaleKit CLI 0.9.13 · Built by Hexagone Studio