DevPrep

All topics › Accessibility and localization

Localization with String Catalogs

Middle PRO

Essence

A String Catalog (Localizable.xcstrings, Xcode 15+) is a single file with all strings and translations instead of a pair of .strings and .stringsdict files per language. At build time Xcode finds strings in the code, adds them to the catalog and shows the state of every translation. Inside it's JSON, and compiled .strings and .stringsdict files end up in the bundle.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store