Xcode String Catalog localization with AI

Xcode String Catalogs: every locale in one file, plural variations, comments and states kept, %@ and %lld protected.

.xcstringsformat: xcstringsevery locale in one file

What it is

String Catalogs (.xcstrings) replaced .strings and .stringsdict in Xcode 15. One JSON file holds the source language, every translation, a comment per string, plural and device variations and a state for each localization. Xcode fills it from your code on every build: a SwiftUI Text("Welcome back, \(name)!") becomes the key "Welcome back, %@!", with the English text implied by the key.

Example

App/Localizable.xcstrings
{  "sourceLanguage" : "en",  "strings" : {    "%lld photos" : {      "comment" : "Album subtitle",      "localizations" : {        "en" : {          "variations" : {            "plural" : {              "one" : {                "stringUnit" : {                  "state" : "translated",                  "value" : "%lld photo"                }              },              "other" : {                "stringUnit" : {                  "state" : "translated",                  "value" : "%lld photos"                }              }            }          }        }      }    },    "Acme Photos" : {      "shouldTranslate" : false    },    "settings.signOut" : {      "comment" : "Button at the bottom of Settings",      "extractionState" : "manual",      "localizations" : {        "en" : {          "stringUnit" : {            "state" : "translated",            "value" : "Sign out"          }        }      }    },    "Welcome back, %@!" : {      "comment" : "Greeting on the home screen"    }  },  "version" : "1.0"}

How Glossa handles it

Plurals
Plural variations are read as one plural string and written back as plural variations with every category the target language needs: one and other for German, one, few, many and other for Russian. A draft missing a category is rejected and filed for review.
Comments and context
The comment field (yours, or the one Xcode extracts from String(localized:comment:)) becomes the string's context in every translation prompt and is written back unchanged.
Placeholders
Format specifiers (%@, %lld, %d, %1$@ and the other positional forms) are protected. A draft that drops or changes one is rejected ("Keep the source's placeholders: Missing %@.") instead of reaching the catalog.
Round trip
Pull writes every locale back into the one catalog in Xcode's own layout: "key" : value spacing, your key order, localizations sorted by locale, and the trailing newline only if the file had one, so a translation diff shows only the strings that changed.

What a translated catalog looks like

Pull writes each target language into the same file as a localization beside en, sorted by locale the way Xcode sorts them. Keys whose English is the key itself ("Welcome back, %@!", extracted from SwiftUI) get no en entry written, exactly as Xcode leaves them, and the shouldTranslate: false string gets no translation at all. The German catalog after a pull:

App/Localizable.xcstrings (after pull)
{  "sourceLanguage" : "en",  "strings" : {    "%lld photos" : {      "comment" : "Album subtitle",      "localizations" : {        "de" : {          "variations" : {            "plural" : {              "one" : {                "stringUnit" : {                  "state" : "translated",                  "value" : "%lld Foto"                }              },              "other" : {                "stringUnit" : {                  "state" : "translated",                  "value" : "%lld Fotos"                }              }            }          }        },        "en" : {          "variations" : {            "plural" : {              "one" : {                "stringUnit" : {                  "state" : "translated",                  "value" : "%lld photo"                }              },              "other" : {                "stringUnit" : {                  "state" : "translated",                  "value" : "%lld photos"                }              }            }          }        }      }    },    "Acme Photos" : {      "shouldTranslate" : false    },    "settings.signOut" : {      "comment" : "Button at the bottom of Settings",      "extractionState" : "manual",      "localizations" : {        "de" : {          "stringUnit" : {            "state" : "translated",            "value" : "Abmelden"          }        },        "en" : {          "stringUnit" : {            "state" : "translated",            "value" : "Sign out"          }        }      }    },    "Welcome back, %@!" : {      "comment" : "Greeting on the home screen",      "localizations" : {        "de" : {          "stringUnit" : {            "state" : "translated",            "value" : "Willkommen zurück, %@!"          }        }      }    }  },  "version" : "1.0"}

Translated and needs_review states

Every localization Glossa writes carries a state Xcode understands. An accepted translation (AI or human) is written as translated. One that waits in the review queue, because the model was unsure of it or a person marked it, is written as needs_review, so Xcode's catalog editor shows it as Needs Review until someone approves it in Glossa and pulls again.

Plural variations in languages with more forms

English needs one and other; Russian needs one for 1, 21, 31, few for 2–4 and many for 5–20. A Russian draft with only one and other still builds, but then shows the same ending for 2 and for 5 ("5 фотографии" instead of "5 фотографий"), so Glossa rejects it with "plural needs the few, many forms for ru (one, few, many, other)." and files a review task. The accepted translation is written as four plural variations:

ru plural forms Glossa accepts
{  "one" : "%lld фотография",  "few" : "%lld фотографии",  "many" : "%lld фотографий",  "other" : "%lld фотографии"}

Strings Xcode marks Don't Translate

Product names, URLs and other strings you mark Don't Translate in the catalog editor are stored with "shouldTranslate" : false. Glossa keeps them in the catalog but never translates them, never lists them as missing, never counts them in coverage or AI-translated words, and writes no target localization for them. A localization you added by hand stays as it is.

One file, every locale: push and pull

The first push sends the whole catalog, so translations already in it are imported as they are (Glossa never overwrites them with AI). After that, push and sync send only the source language (keys, comments, extractionState, shouldTranslate and the en localizations with their variations); add --with-translations after translators edited the catalog in Xcode. Pull writes every locale in one write. Set missing to omit so a string that is not translated yet stays absent and Xcode counts it as untranslated, instead of an English copy marked translated:

.glossa.json
{  "project": "app",  "files": ["App/Localizable.xcstrings"],  "missing": "omit"}

Keep it in sync from CI

sync pushes the catalog after Xcode extracted new strings, waits for them to be translated and pulls every locale back into the same file, so the pull request carries its translations. Strings whose English changed are translated again, or kept for review if the project turns retranslation off. A project in agent mode skips AI translation: your coding agent reads glossa missing and writes glossa fill, with the same checks.

npx @meterapp/glossa sync App/Localizable.xcstrings --project app --missing omit --wait 10mgit add App/Localizable.xcstrings

Translate it from the command line

Push the source-language file; strings are deduplicated against the rest of your workspace and queued for translation. Pull writes App/Localizable.xcstrings back in the same format.

npx @meterapp/glossa loginnpx @meterapp/glossa push App/Localizable.xcstrings --project appnpx @meterapp/glossa pull --project app --locale es,de,ja

Or ask an agent over MCP: “Push App/Localizable.xcstrings to Glossa and pull Spanish.” It calls push_file and pull_file. See the CLI and MCP guides.

Questions

How do I translate an Xcode String Catalog with AI?
Push the catalog (npx @meterapp/glossa push App/Localizable.xcstrings --project app). Glossa translates every string into the project's target languages with Claude, using each string's comment as context, and pull writes the translations back into the same .xcstrings file for Xcode to build.
Will AI translation break %@ or %lld in my strings?
No. Every draft is checked against the source before it is stored: the same format specifiers and every plural form the target language needs. A draft that fails is not written; it goes to the review queue with the problem named, and AI never overwrites a reviewed, imported or human translation.
Does Glossa read the translations already in my catalog?
Yes. The first push imports every locale in the file. They count as imported translations, so AI never replaces them, and later pushes keep them while the English stays the same.
Can I still use .strings and .stringsdict files?
Yes. Glossa reads Localizable.strings and .stringsdict per lproj folder too. If you migrate to a String Catalog in Xcode, push the new .xcstrings file: the same English strings point at the same translations, so nothing is translated twice.

Other formats

Moving from Crowdin? Read the comparison.

Bring every translation you have

Glossa hosts every app free, for good. Import your files, connect your chatbot to audit them, and export the fixes back into your codebase.