Localizing Xcode projects

Translate the String Catalogs, .strings files and Interface Builder text of an iOS, iPadOS, macOS, watchOS or visionOS app.

1. Prepare the project in Xcode

Use String Catalogs: in Xcode choose File → New → File… → String Catalog and name it Localizable. Build the project once; Xcode fills the catalog with every string from Text("…"), String(localized:) and NSLocalizedString. Add an InfoPlist.xcstrings catalog too if your permission prompts and app name should be translated.

Older projects with .strings and .stringsdict files work as they are. Auto Localize also reads Interface Builder .strings files, and .xcloc catalogs exported with Product → Export Localizations….

2. Create an Auto Localize project

  1. Click New Project and drop the folder that contains your .xcodeproj.
  2. Check that Written in is your development language and choose the languages to add.
  3. Click Create Project. Every catalog appears on the left with how much of it is translated.
New project

3. Add languages to Xcode too

When you add languages with the + button in the project header, choose Also add them to … in Xcode: Auto Localize adds them to the project’s known regions, so they appear under Project → Info → Localizations without opening Xcode.

4. Localize

Click Localize (⌘L). Plural variations get every form the language needs; device variations and substitutions are kept; strings marked “Don’t translate” in the catalog are skipped. Translations are written into the catalog the same way Xcode writes it, so the diff only shows the new translations.

A catalog with German translations and plural forms

If Mark AI translations as “Needs Review” is on (Glossary tab), translations are saved with that state and Xcode lists them for review as well.

5. Build and test

Go back to Xcode and build. To try a language, edit the scheme and set Run → Options → App Language, or use Xcode’s String Catalog editor to check each language. Then localize your App Store page and screenshots.

More from MOZKAN

7 more apps, same care

Private, native apps for iPhone, iPad and Mac from the developer of Auto Localize.

DiskloftMac

See your disk as a floor plan and clear caches, Xcode leftovers and duplicate files. Nothing leaves your Mac.

See everything at mozkan.com