Skip to content

Optional analytics, session recording and advertising stay off unless you accept. You can reject them and use Transglot. Change your choice anytime in Cookie preferences. Cookie Policy

Back to the blog
Developer platform

iOS Localization: The Complete String Catalog Guide (2026)

How to localize an iOS app with Xcode String Catalogs: extraction, plurals, formatters, right to left, testing, export, AI translation checks and CI.

by transglot team
published November 23, 2026
24 min read

Documentation reviewed 23 November 2026.

Quick answer

To localize an iOS app in 2026, add a String Catalog (Localizable.xcstrings) to the project, write user-facing text with localizable APIs (Text("...") in SwiftUI, String(localized:) elsewhere), and build. Xcode extracts every string into the catalog, where you add languages, translations, plural variants and device variants in one file. Format dates, numbers and currency with formatted() instead of translating them, test with the scheme's Double-Length and Right-to-Left pseudolanguages, and exchange work with translators as .xcloc bundles through xcodebuild -exportLocalizations. Whoever translates, a person, an agent in Xcode or an outside AI tool, check three things before merging: format specifiers, plural forms and untouched keys.

Who this is for

This guide is for Swift developers and the product leads who work with them. It targets Xcode 27. String Catalogs arrived in Xcode 15, so most of it applies to older projects too, and legacy .strings and .stringsdict files are covered, including how to migrate them.

At the end you will have:

  • A project where Xcode keeps the list of strings in step with the code.
  • Plurals that are correct in languages with more than two forms.
  • A layout that survives long text, tall scripts and right to left.
  • A repeatable way to send strings out, bring translations back and check them.
  • A translated App Store listing that fits the field limits.

For choosing languages and planning the review, see the app localization guide for product teams. For Android and Flutter alongside iOS, see localizing a mobile app into 20 languages.


The file formats, and which one to use

Apple platforms have three generations of string files. They can coexist in one project.

FormatWhat it holdsFits
String Catalog (.xcstrings)Every language, plural variants, device variants, comments and a state per translation, in one JSON fileNew work, and any project that builds with Xcode 15 or later
.strings plus .stringsdictOne .strings file per language for plain text, one .stringsdict property list per language for pluralsProjects that still build with an older Xcode, or tooling that only reads these files
Xcode Localization Catalog (.xcloc)An export folder per language with an XLIFF file, source files and screenshotsHanding work to translators and translation tools. It is an exchange format, not something the app loads

Apple's documentation calls String Catalogs the recommended way to handle plurals from Xcode 15 onward. At build time a catalog compiles to .strings and .stringsdict files, which is why adopting one does not raise your minimum deployment target.

A cream paper-pulp filing drawer on a dark stone plinth, one drawer open, holding a single thick card that fans into several thinner language cards
One String Catalog holds every language, where the legacy formats needed a file for each

Part 1: add the languages

In the project editor, select the project, click Info, and under Localizations click the Add button (+). Pick a language, or a language and region. You can do the same from inside a String Catalog with the Add button at the bottom of its sidebar.

Three details matter here:

  • Be specific. Apple recommends choosing the most specific localization. If your English is American English, choose English (United States) (en-US), not English (en).
  • Know the identifiers. A language ID is a language code with an optional region or script: fr, pt-BR, zh-Hans, zh-Hant-TW. Translators and tools see these IDs, not the menu names.
  • Resources get folders. For images, audio and other localized files, Xcode creates a folder per language named after the ID, such as de.lproj. Strings in a catalog do not need these folders.

Part 2: add a String Catalog and let Xcode fill it

  1. Choose File > New > File from Template, filter for string, select String Catalog and keep the default name Localizable.
  2. Choose Product > Build.

On each build Xcode finds the localizable strings in the code and updates the catalog. You do not type keys into the file by hand unless you want to.

For Swift code outside SwiftUI views, the extraction relies on the compiler. Make sure the build setting Use Compiler to Extract Swift Strings (SWIFT_EMIT_LOC_STRINGS) is on. Objective-C extraction needs no setting.

If a string is missing from the catalog after a build, the code is not using a localizable API. Fix the code, not the catalog.
Rule

To see which text on screen is not localizable, edit the scheme, open Run > Options, and turn on Show non-localized strings. Those strings then appear in capitals when the app runs.

Part 3: write code that Xcode can extract

Four APIs cover almost every case.

APIUse it forNotes
LocalizedStringKeyString literals in SwiftUI views: Text("Title"), Button("Checkout")Created for you from a literal. A String variable is shown as is, without a lookup
String(localized:)Text built outside a view: models, alerts, UIKit and AppKit controlsLooks the string up immediately
LocalizedStringResourcePassing localizable text between types, modules or processesThe lookup is deferred. Apple recommends it as the type for passing strings
NSLocalizedStringObjective-C and older Swift codeKey and comment must be literals, or Xcode cannot extract them
Swift 6, Xcode 27. The String(localized:) calls were type-checked for this guide.swift
import SwiftUI
struct CartView: View {
let itemCount: Int
let title: LocalizedStringResource
var body: some View {
VStack {
// A literal in a view is a LocalizedStringKey.
Text("Your cart")
// A LocalizedStringResource passed in from elsewhere.
Text(title)
// Interpolation is extracted as "%lld items".
Text("\(itemCount) items")
// A comment travels to the translator.
Button("Checkout") {}
Text("Edit", comment: "Button that switches the cart to edit mode.")
}
}
}
// Outside a view.
let empty = String(localized: "Your cart is empty.",
comment: "Shown when the cart has no items.")
// A stable key with separate English text, in a catalog named Onboarding.
let welcome = String(localized: "welcome.title",
defaultValue: "Welcome back",
table: "Onboarding",
comment: "Title of the first screen.")

Comments for translators

"Open" on a button and "Open" as a status are different words in most languages, and the translator sees only the string. Pass comment: in code, or type it into the catalog's comment column. Xcode can also write comments for you: Control-click a key and choose Generate Comment. Generated comments are marked "auto-generated" when you export.

Several catalogs

A large app can split strings into tables. Pass tableName: to Text or table: to String(localized:), and Xcode puts the string into the catalog with that name. In a framework or Swift package, pass bundle: #bundle so the lookup happens in that target's bundle.

Keys first, code second

You can also add a key in the catalog first, and Xcode generates a Swift symbol for it. A key TITLE in a catalog named Discover becomes .Discover.title, a LocalizedStringResource. This suits teams whose writers change wording without touching code.


Part 4: what is inside an `.xcstrings` file

A String Catalog is JSON, so it diffs in a pull request. The sample below is a small but complete catalog with one plural string translated into Russian and one two-argument string translated into German.

Localizable.xcstrings. This structure compiles with xcstringstool from Xcode 27.2.json
{
"sourceLanguage" : "en",
"strings" : {
"%lld items" : {
"comment" : "Number of items in the cart.",
"localizations" : {
"en" : {
"variations" : {
"plural" : {
"one" : { "stringUnit" : { "state" : "translated", "value" : "%lld item" } },
"other" : { "stringUnit" : { "state" : "translated", "value" : "%lld items" } }
}
}
},
"ru" : {
"variations" : {
"plural" : {
"one" : { "stringUnit" : { "state" : "translated", "value" : "%lld товар" } },
"few" : { "stringUnit" : { "state" : "translated", "value" : "%lld товара" } },
"many" : { "stringUnit" : { "state" : "translated", "value" : "%lld товаров" } },
"other" : { "stringUnit" : { "state" : "needs_review", "value" : "%lld товара" } }
}
}
}
}
},
"%@ shared %lld photos" : {
"localizations" : {
"de" : {
"stringUnit" : { "state" : "translated", "value" : "%2$lld Fotos von %1$@" }
}
}
}
},
"version" : "1.0"
}

The states

The editor shows a state beside every string in every language.

StateMeaningWhat to do
NewNot yet translated into this languageTranslate it
Needs ReviewThe value may need to change, for example because the source text changedFix it, or choose Mark as Reviewed if it is still right
TranslatedHas a value, shown with a green checkmarkNothing
StaleXcode no longer finds the string in the codeDelete it once you confirm it is unused

A string you add by hand is managed manually, and Xcode never updates or removes it on a build. That suits keys built at run time or sent by a server. Translations made by an agent in Xcode are saved with the state machine_translated, so you can tell them apart from ones a person entered.

Part 5: plurals and device variations

Plurals

English has two plural forms. Russian needs four in a catalog, and Arabic has six categories. Do not write item(s), and do not branch on count == 1 in code.

  1. Use interpolation in a localizable API: Text("\(itemCount) items").
  2. Build, so the key %lld items appears in the catalog.
  3. Control-click the key and choose Vary by Plural.

Xcode adds the plural forms for the source language. When you add another language it adds that language's own forms: One and Other for English, One, Few, Many and Other for Russian. The categories available are zero, one, two, few, many and other, and other is always required.

For a string with two numbers, such as "3 birds in 2 backyards", choose which arguments to vary. Xcode creates a named substitution for each, and each substitution holds its own set of plural forms.

Do not type a digit such as 1 into a plural form. Use the format specifier or spell the word out ("One item"). A typed digit may be wrong when the user changes region.
Watch out
Six stacked cream paper-pulp tiles of different heights on a stone plinth, labelled zero, one, two, few, many, other, with a teal glass marker resting on the tile labelled few
A language uses between one and six plural categories, and the catalog needs every one it uses

Device variations

"Tap to learn more" is wrong on a Mac. Control-click the key, choose Vary by Device and pick the device that needs its own wording. Every other device keeps the original text.

The legacy .stringsdict format also had width variants. From Xcode 15 onward Apple's guidance is to use Dynamic Type for space problems instead.

Part 6: format specifiers and argument order

When Xcode extracts an interpolated string it replaces each value with a format specifier chosen by type. An Int becomes %lld, a String becomes %@ and a Double becomes %lf. So "\(name) shared \(count) photos" is stored under the key %@ shared %lld photos.

Languages order words differently, and translations must be free to move the values. Positional specifiers do that: %1$@ means "the first argument", %2$lld means "the second". The German value in the sample above, %2$lld Fotos von %1$@, puts the count first without any change to the code.

A translation must contain the same specifiers as its source, with the same types. %lld may become %2$lld. It may never become %d, %@ or % lld.
Rule

The legacy function works the same way:

Older code. NSLocalizedString needs literal key and comment values to be extracted.swift
let label = String.localizedStringWithFormat(
NSLocalizedString("%@ shared %lld photos",
comment: "Feed row. First value is a name, second is a photo count."),
name, count)

Part 7: legacy `.strings` and `.stringsdict`, and migrating

A .strings file is one "key" = "value"; line per string, one file per language:

texttext
/* Shown when the cart has no items. */
"Your cart is empty." = "Ihr Warenkorb ist leer.";

Plurals live in a separate .stringsdict property list. The format string points at a variable, and the variable holds one entry per plural category:

xmlxml
<plist version="1.0">
<dict>
<key>%d home(s) found</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@homes@</string>
<key>homes</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d home found</string>
<key>other</key>
<string>%d homes found</string>
</dict>
</dict>
</dict>
</plist>

If a language's file lacks a category it needs, the text can be grammatically wrong. If it has a category the language does not use, the system ignores it and uses other.

To migrate, Control-click the .strings file in the Project navigator and choose Migrate to String Catalog. Xcode's migration assistant lists the files it can convert, converts the ones you pick and then builds to sync the catalog with the code. You can migrate one table at a time, because catalogs and legacy files can sit side by side in the same project.

Part 8: `Info.plist` strings, images and assets

Info.plist. The app name under the icon (CFBundleDisplayName) and permission prompts such as NSCameraUsageDescription are user-facing text. Add a second catalog named InfoPlist.xcstrings to the target. On each build Xcode adds the localizable Info.plist keys it knows, and you can add others by hand.

Asset catalogs. Select an asset, and under Localization in the Attributes inspector click Localize, then tick the languages. Xcode shows a slot per language. Color sets, image sets, symbol sets, watch complications, Apple TV image stacks and sprite atlases can be localized this way.

Other files. For a loose resource such as an audio file, select it and click Localize in the inspector. It becomes a group with one version per language.

Keep text out of images where you can. An image with words in it needs a version per language, and it is the asset most often forgotten.


Part 9: dates, numbers, currency and measurements

Never translate a date or a number as text. Decimal separators, the position of the percent sign, day and month order, and units all change by region, including between regions that share a language. Foundation's format styles handle it:

Outputs shown are for the en_US locale, as in Apple's documentation.swift
import Foundation
let date = Date.now
date.formatted(date: .abbreviated, time: .omitted) // "Aug 25, 2023" in en_US
date.formatted(.dateTime.year().month(.wide).day()) // "September 7, 2023"
12345.formatted() // "12,345"
0.25.formatted(.percent) // "25%"
let amount: Decimal = 12345.67
amount.formatted(.currency(code: "EUR"))
amount.formatted(.currency(code: "JPY")) // "¥12,346"
let distance = Measurement(value: 384400, unit: UnitLength.kilometers)
distance.formatted(.measurement(width: .wide)) // "238,855 miles" in en_US
["small", "medium", "large"].formatted(.list(type: .and)) // "small, medium, and large"

In SwiftUI, pass the style to the view: Text(date, format: .dateTime.year().month().day()) or TextField("Amount", value: $tip, format: .percent).

Use Decimal for money, never Float or Double, and pass the ISO 4217 code of the currency the amount is in. To check a style in another region without changing the device, add .locale(Locale(identifier: "fr_FR")) to it.

Part 10: right to left, Dynamic Type and long text

Right to left

Arabic and Hebrew read right to left, and the interface mirrors. SwiftUI and the system UIKit components flip on their own: SwiftUI horizontally flips the x position of each view inside its parent, so a standard layout needs no changes.

What you have to get right:

  • Use leading and trailing, never left and right. In UIKit that means leadingAnchor and trailingAnchor in constraints.
  • Flip direction, not meaning. A back button points right in a right-to-left layout. A photo, a logo, a checkmark or a clock does not flip.
  • Mark the images that should flip. In UIKit call imageFlippedForRightToLeftLayoutDirection(). In SwiftUI use .flipsForRightToLeftLayoutDirection(true). SF Symbols already ship right-to-left variants.
  • Never reverse the digits of a number. A phone number reads in the same order in every language.

Dynamic Type and tall scripts

Some scripts need more vertical space than Latin text, and people also choose larger text sizes. Both problems have the same fix: text styles instead of fixed font sizes, and layouts that grow.

UIKit. The label follows the user's text size and wraps instead of truncating.swift
label.font = UIFont.preferredFont(forTextStyle: .body)
label.adjustsFontForContentSizeCategory = true
label.numberOfLines = 0

In SwiftUI the current size is available as the dynamicTypeSize environment value when a layout needs to change shape at large sizes.

Long text

Translations are often longer than English. Let labels wrap, let buttons grow, and avoid fixed widths.

Part 11: test before the translations exist

You can find most layout problems on day one, with no translations at all. Edit the scheme, open Run > Options, and choose a pseudolanguage at the bottom of the App Language menu.

PseudolanguageWhat it shows
Double-Length PseudolanguageDoubles every string, so you see which views fail to resize
Right-to-Left PseudolanguageMirrors the layout with your existing strings
Right-to-Left Pseudolanguage With Right-to-Left StringsMirrors the layout and uses right-to-left text
Accented PseudolanguageAdds accents, for scripts with high and low marks
Bounded String PseudolanguageWraps strings in markers so truncation is visible
Tall PseudolanguageSimulates scripts that need more vertical space

The same App Language and App Region menus run the app in a real language without changing the device settings. In SwiftUI previews, set the locale directly:

swiftswift
#Preview("Arabic") {
CartView(itemCount: 3, title: "Recent purchases")
.environment(\.locale, Locale(identifier: "ar"))
.environment(\.layoutDirection, .rightToLeft)
}
Run Double-Length and Right-to-Left on the smallest device you support before you send anything to translation. Layout bugs found later cost a review round per language.
In short

UI tests can also capture screenshots per language for translators: in a test plan configuration, set the application language and switch Localization Screenshots on.


Part 12: export and import

Translators and most translation tools do not open your project. They get an Xcode Localization Catalog.

In Xcode, select the project and choose Product > Export Localizations. From the command line:

Flags as printed by xcodebuild -help in Xcode 27.2. Add -includeScreenshots to the export to ship test screenshots.bash
# One .xcloc folder per language is written to ./Localizations
xcodebuild -exportLocalizations \
-project MyApp.xcodeproj \
-localizationPath ./Localizations \
-exportLanguage de -exportLanguage ar
# After translation
xcodebuild -importLocalizations \
-project MyApp.xcodeproj \
-localizationPath ./Localizations/de.xcloc

Each .xcloc folder contains:

ItemContents
contents.jsonMetadata: development region, locale, tool version
Localized ContentsThe localizable resources, including the XLIFF file with the strings
NotesScreenshots and any context files you add
Source ContentsThe source files, for context

In the XLIFF, each string is a <trans-unit> with a <source>, and the translator adds a <target>. Xcode writes the right plural categories for each language into the export, so the translator fills in forms and never has to know the file structure.

On import, Xcode shows a comparison view with warnings for anything untranslated, then writes the translations into the matching String Catalog.

Part 13: the translation step, and what breaks when a model does it

You have four realistic ways to get the words.

ApproachHow it worksFits
Type into the catalogEnter values in the String Catalog editorA language someone on the team speaks
Agents in XcodePrompt the coding assistant ("Translate my app into Italian") or click Generate Translations in the editorSolo developers and first drafts. Results are marked machine_translated
Export to a translator or agencySend .xcloc, import the resultLanguages where a professional must own the text
A localization platformA service reads the catalog or the .xcloc, translates and returns it, with review screens for non-developersMany languages, frequent releases, reviewers outside engineering

Lokalise, Crowdin, Phrase, Localazy and Transglot each document String Catalog support. They were not compared for this guide. Whichever route you take, the translator, human or model, can damage the structure of the file. These are the failures to look for.

Format specifiers. A model may "tidy" %lld into %d, insert a space (% lld), translate the name inside %#@homes@, drop a specifier from a sentence it rewrote, or reorder two %@ without numbering them. After any of these, the format string and the arguments the code passes no longer agree, and no compiler catches it.

Plural structure. A model tends to copy the source language's shape, so a Russian or Arabic entry comes back with only one and other. It may also add categories a language does not use, or flatten a varied string into a single value.

Keys. In a catalog the key is often the English sentence. A model asked to "translate this file" will translate the keys too, and then nothing matches at run time. The same goes for the left side of a .strings line.

File syntax. A .strings line needs its quotation marks and its semicolon, and an .xcstrings file must stay valid JSON.

Meaning. Short strings without comments get the wrong sense, and product terms drift between screens. Comments and a glossary fix most of this.

A cream paper-pulp conveyor on a stone plinth carrying small moulded string blocks through a gate, one cracked block lifted aside, a teal glass lens over the gate
Every translated string passes the same gate: specifiers, plural forms, keys

A check you can run

This script reads a catalog and fails when a translation is not in the translated state or when its format specifiers differ from the source. A plural form may leave a specifier out ("One item"), so the script only rejects plural forms that add or change one.

check_xcstrings.py, Python 3. Run on the sample above it reports the Russian needs_review form and exits 1.python
#!/usr/bin/env python3
"""Fail when a String Catalog has untranslated strings or changed format specifiers."""
import json, re, sys
from collections import Counter
ACCEPTED_STATES = {"translated"}
SPEC = re.compile(
r"%(?:\d+\$)?(#@\w+@|[-+0 #]*\d*(?:\.\d+)?(?:hh|h|ll|l|q|z|t|j)?[@dDuUxXoOfFeEgGcCsSaAp])"
)
def specs(text):
return Counter(SPEC.findall(text.replace("%%", "")))
def units(node, plural=False):
"""Yield (value, state, is_plural_form) for every stringUnit under a localization."""
if "stringUnit" in node:
unit = node["stringUnit"]
yield unit.get("value", ""), unit.get("state"), plural
for kind, forms in node.get("variations", {}).items():
for form in forms.values():
yield from units(form, plural or kind == "plural")
catalog = json.load(open(sys.argv[1], encoding="utf-8"))
source = catalog["sourceLanguage"]
errors = []
for key, entry in catalog["strings"].items():
locs = entry.get("localizations", {})
expected = Counter()
for value, _, _ in units(locs.get(source, {})):
expected |= specs(value)
expected = expected or specs(key)
for lang, loc in locs.items():
if lang == source:
continue
for value, state, plural in units(loc):
if state not in ACCEPTED_STATES:
errors.append(f"{lang}: {key!r} is {state}")
found = specs(value)
if (found - expected) or ((expected - found) and not plural):
errors.append(f"{lang}: {key!r} specifiers differ: {value!r}")
print("\n".join(errors) or "catalog ok")
sys.exit(1 if errors else 0)

Add machine_translated to ACCEPTED_STATES if you ship agent translations as they are. The script does not check that each language has the plural categories it needs. Xcode adds those itself, so the risk is in files edited outside Xcode. There, compare each language's categories with the Unicode CLDR plural rules.

For the wider set of checks that can run without a person, see automated localization QA.


Doing this with Transglot

Transglot is a continuous localization platform. It reads String Catalogs (format id ios_xcstrings), .strings (ios_strings), .stringsdict (ios_stringsdict) and XLIFF 1.2 and 2.0. Before a translation is written, four checks run on it: placeholders, plural forms, glossary terms and length. A string that fails placeholders, plurals or glossary is repaired once, and if it still fails it is refused instead of written.

bashbash
npx transglot@latest init --targets de,fr,ja,ar
transglot push --wait
transglot pull

init finds the string files, works out the source language, signs in through the browser, runs the first translation and writes a transglot.json. The configuration reference explains its fields, and the quality checks page describes what each check accepts.

Limits to know before you choose it:

  • A catalog that holds several languages is read for the locale being imported, and each export contains one locale. The documentation does not describe merging pulled languages back into one multi-language .xcstrings file, so try the round trip on a branch first.
  • .strings files must be UTF-8. Convert older UTF-16 files first.
  • The XLIFF formats do not carry plurals in Transglot, so prefer the catalog or .stringsdict for plural strings.
  • The documentation does not say how device variations are handled.
  • There is no over-the-air SDK for native iOS. Text changes ship in a build.
  • The command line tool, GitHub Action and API start on the Starter plan at $19 a month. The Free plan works from the browser console. It is not self-hostable. See pricing.

Part 14: the App Store listing

The listing is localized in App Store Connect, separately from the app binary. Open the app, use the language menu at the top right, and add a language under Not Localized. If no localization matches a user's language, the store falls back to the next most relevant one and then to your primary language.

FieldLimit
Name2 to 30 characters
Subtitle30 characters
Promotional Text170 characters
Description4,000 characters
Keywords100 bytes
What's New in this Version4,000 characters

The keyword limit is in bytes, not characters. Write the short fields for each language instead of translating them word for word, since a name that fits in English may not fit in German. When you add a language, screenshots and most properties default to the primary language's, except the description and keywords, so write those two per language. Transglot has a connector for App Store Connect listings.

Part 15: keep it current in CI

A localized app goes stale on the first release that adds an English string. The catalog is a file in the repository, so treat it like code. Localization as code describes the approach in general.

  1. Build before you commit. The catalog is updated by the build, so a commit that adds a string should include the catalog change.
  2. Fail the pull request on untranslated or broken strings. The check script needs only Python, so it runs on any runner.
  3. Translate on merge, by exporting for translators or by letting a tool push and pull.
yamlyaml
name: localization
on:
pull_request:
paths: ["**/*.xcstrings"]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: python3 scripts/check_xcstrings.py MyApp/Localizable.xcstrings

If Transglot does the translating, its action uploads new strings on each push to main, waits for the translation, pulls the files and commits them back. The GitHub Action reference lists its inputs.

yamlyaml
name: transglot
on:
push:
branches: [main]
jobs:
localize:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: transglot/transglot-action@v1
with:
token: ${{ secrets.TRANSGLOT_TOKEN }}
url: https://api.transglot.ai
A strict "everything translated" gate blocks every pull request that adds a string. Run the state check on release branches and the specifier check everywhere, or translate before the gate runs.
Watch out

Common mistakes

  • Building sentences from pieces. Text("Hello, ") + Text(name) fixes the word order in English. Use one string with interpolation.
  • Passing a String variable to Text. A variable is displayed as is. Only literals, LocalizedStringKey and LocalizedStringResource values are looked up.
  • Handling plurals in code. count == 1 ? "item" : "items" is wrong in every language with more than two forms.
  • Deleting stale strings without checking. Stale means Xcode did not find the string in code. A key built at run time is not found either. Mark those as manually managed.
  • Forgetting InfoPlist.xcstrings. The permission prompt stays in English in an otherwise translated app.
  • Formatting numbers by hand. "\(price) €" is wrong in most regions. Use .formatted(.currency(code:)).
  • Using left and right in constraints. The layout will not mirror.
  • Testing only in English. The pseudolanguages need no translations.
  • Letting a tool translate the keys. Keys must be identical after any round trip.

Checklist

texttext
[ ] Languages added with the most specific ID (en-US, pt-BR, zh-Hans)
[ ] Localizable.xcstrings added, project builds, catalog is populated
[ ] Use Compiler to Extract Swift Strings is on
[ ] Show non-localized strings run: nothing in capitals
[ ] Every ambiguous string has a comment
[ ] Every string with a number uses Vary by Plural
[ ] Device-specific wording uses Vary by Device
[ ] Translations keep specifiers, and use %1$@ style where order changes
[ ] InfoPlist.xcstrings added for app name and permission prompts
[ ] Images with text localized in the asset catalog
[ ] Dates, numbers, currency and units use formatted()
[ ] Constraints use leading and trailing, directional images flip
[ ] Text styles and wrapping labels, no fixed widths
[ ] Double-Length and Right-to-Left pseudolanguage runs pass
[ ] No New, Needs Review or Stale strings left before release
[ ] Catalog check runs in CI
[ ] App Store name, subtitle, keywords and description within limits per language
[ ] A native speaker has read onboarding and purchase screens

Frequently asked questions

What is an xcstrings file?

An .xcstrings file is a String Catalog, the format Xcode has used for localizable strings since Xcode 15. It is one JSON file that holds every string, every language's translation, plural and device variants, comments and a state per translation. Xcode fills it from your code on each build and compiles it to .strings and .stringsdict files in the built app.

Do String Catalogs work on older iOS versions?

Yes. A catalog is a build-time format. Xcode compiles it into .strings and .stringsdict files, which the operating systems have supported for many years, so you do not need to raise the deployment target to adopt one.

How do I migrate from .strings to a String Catalog?

Control-click the .strings file in the Project navigator and choose Migrate to String Catalog. The migration assistant lists the files it can convert, including the matching .stringsdict. You can migrate one table at a time, since catalogs and legacy files coexist in a project.

What is the difference between String(localized:) and NSLocalizedString?

Both look up a translation by key. String(localized:) is the current Swift API and accepts interpolation, a default value, a table and a comment. Apple points apps that target older platforms to NSLocalizedString. Xcode extracts strings from both.

How do plurals work in a String Catalog?

Write the string with an interpolated number, build, then Control-click the key and choose Vary by Plural. Xcode adds the plural categories the source language uses, and adds each other language's own categories when you add that language. Each category gets its own translation.

How do I test an iOS app in another language without changing the device?

Edit the scheme, select Run, open Options, and set App Language and App Region. The same menu holds the pseudolanguages, including Double-Length and Right-to-Left, which need no translations. In SwiftUI previews, set the locale environment value.

Can AI translate an xcstrings file?

Yes. Current Xcode has it built in through agents and the Generate Translations button, and outside tools can do it too. In every case check that format specifiers are unchanged, that each language has all its plural categories and that keys were not translated.

How do I export iOS strings for translators?

Choose Product > Export Localizations in Xcode, or run xcodebuild -exportLocalizations. The result is an .xcloc folder per language with an XLIFF file inside. Bring it back with Product > Import Localizations or xcodebuild -importLocalizations.

How this guide was checked

  • Languages, String Catalogs, variations, comments, tables, symbols, formatters, pseudolanguages, export and import follow the Apple documentation pages under Sources, read on 23 November 2026.
  • The states, manual strings, InfoPlist.xcstrings, the migration assistant and the build-time compilation follow Apple's WWDC23 session "Discover String Catalogs". The machine_translated state follows Apple's page on localizing with agents.
  • Apple does not publish a schema for the .xcstrings JSON. The sample catalog was compiled with xcstringstool compile from Xcode 27.2. The xcodebuild flags are the ones xcodebuild -help prints in that version. The specifiers %@, %lld and %lf were confirmed with the Swift compiler's string extraction.
  • The Swift samples were type-checked with Swift 6.4. Formatter outputs are Apple's stated outputs for en_US and were not re-run.
  • The check script was run on the sample catalog and on a copy with broken specifiers, not on a production catalog.
  • Not tested: a full app build, Xcode's agent translations, the migration assistant, the layout snippets on a device, and import of a translated .xcloc.
  • App Store Connect limits are those in App Store Connect Help on the review date. Check the form before you submit.
  • Transglot statements follow its public documentation. Its String Catalog round trip was not run for this guide.
  • Lokalise, Crowdin, Phrase and Localazy are named because their own documentation lists String Catalog support. They were not tested or benchmarked.

Sources

colophon

Who wrote this, and what to read next

wrote this

transglot team

The byline on this post has no profile yet. Author profiles are managed alongside the posts themselves.

Engineering
keep reading

How to Localize a Mobile App into 20 Languages Quickly

A five-step plan to take an iOS, Android or Flutter app from one language to twenty: prepare the strings, translate with AI, check plurals and layout, then ship.

November 23, 2026
9 min read
keep reading

App Localization Guide for Product Teams

Plan app localization around complete user journeys. Learn how to scope a locale, prepare resources, review translations, test releases and maintain the experience.

August 26, 2026
20 min read
keep reading

Automated localization QA with Transglot

Catch broken placeholders, incomplete plurals and terminology conflicts. Learn what automated QA proves, where human review matters and how to validate a release.

March 31, 2026
6 min read
works with what you already run

41 connectors, already built.

the pipeline this post describes

Try it on your own strings. Free, no card.

Free plan: 100,000 words to start (25,000 at sign-up, 75,000 after a phone check), then 10,000 a month, 15 locales including your source, 3 seats.