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.
| Format | What it holds | Fits |
|---|---|---|
String Catalog (.xcstrings) | Every language, plural variants, device variants, comments and a state per translation, in one JSON file | New work, and any project that builds with Xcode 15 or later |
.strings plus .stringsdict | One .strings file per language for plain text, one .stringsdict property list per language for plurals | Projects 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 screenshots | Handing 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.

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
- Choose File > New > File from Template, filter for
string, select String Catalog and keep the default nameLocalizable. - 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.
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.
| API | Use it for | Notes |
|---|---|---|
LocalizedStringKey | String 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 controls | Looks the string up immediately |
LocalizedStringResource | Passing localizable text between types, modules or processes | The lookup is deferred. Apple recommends it as the type for passing strings |
NSLocalizedString | Objective-C and older Swift code | Key and comment must be literals, or Xcode cannot extract them |
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.
The states
The editor shows a state beside every string in every language.
| State | Meaning | What to do |
|---|---|---|
| New | Not yet translated into this language | Translate it |
| Needs Review | The value may need to change, for example because the source text changed | Fix it, or choose Mark as Reviewed if it is still right |
| Translated | Has a value, shown with a green checkmark | Nothing |
| Stale | Xcode no longer finds the string in the code | Delete 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.
- Use interpolation in a localizable API:
Text("\(itemCount) items"). - Build, so the key
%lld itemsappears in the catalog. - 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.
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.%lldmay become%2$lld. It may never become%d,%@or% lld.
The legacy function works the same way:
Part 7: legacy `.strings` and `.stringsdict`, and migrating
A .strings file is one "key" = "value"; line per string, one file per language:
Plurals live in a separate .stringsdict property list. The format string points at a variable, and the variable holds one entry per plural category:
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:
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
leadingAnchorandtrailingAnchorin 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.
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.
| Pseudolanguage | What it shows |
|---|---|
| Double-Length Pseudolanguage | Doubles every string, so you see which views fail to resize |
| Right-to-Left Pseudolanguage | Mirrors the layout with your existing strings |
| Right-to-Left Pseudolanguage With Right-to-Left Strings | Mirrors the layout and uses right-to-left text |
| Accented Pseudolanguage | Adds accents, for scripts with high and low marks |
| Bounded String Pseudolanguage | Wraps strings in markers so truncation is visible |
| Tall Pseudolanguage | Simulates 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:
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.
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:
Each .xcloc folder contains:
| Item | Contents |
|---|---|
contents.json | Metadata: development region, locale, tool version |
Localized Contents | The localizable resources, including the XLIFF file with the strings |
Notes | Screenshots and any context files you add |
Source Contents | The 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.
| Approach | How it works | Fits |
|---|---|---|
| Type into the catalog | Enter values in the String Catalog editor | A language someone on the team speaks |
| Agents in Xcode | Prompt the coding assistant ("Translate my app into Italian") or click Generate Translations in the editor | Solo developers and first drafts. Results are marked machine_translated |
| Export to a translator or agency | Send .xcloc, import the result | Languages where a professional must own the text |
| A localization platform | A service reads the catalog or the .xcloc, translates and returns it, with review screens for non-developers | Many 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 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.
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.
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
.xcstringsfile, so try the round trip on a branch first. .stringsfiles must be UTF-8. Convert older UTF-16 files first.- The XLIFF formats do not carry plurals in Transglot, so prefer the catalog or
.stringsdictfor 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.
| Field | Limit |
|---|---|
| Name | 2 to 30 characters |
| Subtitle | 30 characters |
| Promotional Text | 170 characters |
| Description | 4,000 characters |
| Keywords | 100 bytes |
| What's New in this Version | 4,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.
- Build before you commit. The catalog is updated by the build, so a commit that adds a string should include the catalog change.
- Fail the pull request on untranslated or broken strings. The check script needs only Python, so it runs on any runner.
- Translate on merge, by exporting for translators or by letting a tool push and pull.
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.
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.
Common mistakes
- Building sentences from pieces.
Text("Hello, ") + Text(name)fixes the word order in English. Use one string with interpolation. - Passing a
Stringvariable toText. A variable is displayed as is. Only literals,LocalizedStringKeyandLocalizedStringResourcevalues 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
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". Themachine_translatedstate follows Apple's page on localizing with agents. - Apple does not publish a schema for the
.xcstringsJSON. The sample catalog was compiled withxcstringstool compilefrom Xcode 27.2. Thexcodebuildflags are the onesxcodebuild -helpprints in that version. The specifiers%@,%lldand%lfwere 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_USand 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
- Apple: Localization
- Apple: Localizing and varying text with a string catalog
- Apple: Preparing your app's text for translation
- Apple: Using generated localizable symbols in your code
- Apple: Localizing your app using agents
- Apple: Adding support for languages and regions
- Apple: Choosing localization regions and scripts
- Apple: Preparing dates, currencies, and numbers for translation
- Apple: Preparing your interface for localization
- Apple: Testing localizations when running your app
- Apple: Previewing localizations
- Apple: Creating screenshots of your app for localizers
- Apple: Exporting localizations
- Apple: Importing localizations
- Apple: Editing XLIFF and string catalog files
- Apple: Localizing assets in a catalog
- Apple: Adding resources to localizations
- Apple: Localizing strings that contain plurals
- Apple: Creating width and device variants of strings
- Apple: Build settings reference
- Apple: LocalizedStringKey
- Apple: LocalizedStringResource
- Apple: NSLocalizedString
- Apple: LayoutDirection
- Apple: Scaling fonts automatically
- Apple: String format specifiers
- Apple Human Interface Guidelines: Right to left
- Apple WWDC23: Discover String Catalogs
- App Store Connect Help: App information
- App Store Connect Help: Platform version information
- App Store Connect Help: Localize app information
- Unicode CLDR plural rules
- Lokalise docs: Apple XCStrings
- Crowdin Store: String Catalog
- Phrase: supported file types for Strings
- Localazy docs: xcstrings format
- Transglot: file formats
- Transglot: quality checks
- Transglot pricing