Translation Isn't Localization: A Swift Pre-Ship Audit for the Locales You Never Opened
Photo: VoidRaven-18, CC BY-SA 4.0, via Wikimedia Commons
Your app lists forty languages in App Store Connect. Your team speaks English. Maybe one engineer took Spanish in college. The translation vendor delivered a spreadsheet months ago, the strings got imported, and nobody has opened the German build since. That is not localization. That is a hope strategy with a locale picker.
App Store review will not catch most of this. Reviewers are not running your checkout flow in Arabic with a 21-item cart. They are not checking whether your date formatter quietly fell back to en_US in Helsinki. The only reliable move is a localization audit you can run before the release candidate hits TestFlight.
Here is a practical pass for Swift teams that ship many locales but have never really tested them.
Start With a Locale Inventory, Not a Spreadsheet
Open the project and list every locale the app actually claims to support. Compare that against the locales with translated resources. String Catalogs make this easier than the old .strings days, but they also make it easy to forget which languages are enabled by default. A locale in the project file is a promise. If the strings are missing, the app silently falls back to the development language, and users get English with a translated settings screen.
Write the inventory down. Locale code, translation status, owner, last tested date. If a locale has no owner and no test date, it is a liability, not a feature. You do not need a full translation management system to start. A checked-in markdown table beats a vague memory of what the vendor sent in March.
Missing Keys Are the Easy Part
The good news is that missing keys are findable. String Catalogs show translation state, but the runtime fallback is quiet. Add a test that loads every localized bundle and asserts the expected keys exist. With Swift Testing, this is a parameterized test over locales and keys, not a heroic manual pass.
Do not stop at key presence. Check for empty values, values that still match the base language word for word, and keys that only exist in the source catalog. A key that says checkout.button.pay and returns checkout.button.pay in French is not translated. It is a placeholder wearing a beret.
Plurals and Gender Will Embarrass You
English plural rules are simple enough to make teams careless. Other languages are not. Arabic has multiple plural categories. Russian and Polish change endings based on the number in ways that do not map to one and other. String Catalogs support plural variations, but only if the translator supplied them and the developer wired them correctly.
Test counts that stress the rules: 0, 1, 2, 5, 11, 21, 100. Test them in the actual UI, not just a unit test that prints a string. A cart summary that reads '3 items' in English can turn into a grammar disaster in a locale with more plural categories. Also watch for string concatenation. If your code builds sentences with + or String(format:) around translated fragments, word order will break in languages that put the verb somewhere you did not expect.
Dates, Numbers, and the Currency You Did Not Mean
Hard-coded en_US is the quiet classic. It hides in date formatters, number formatters, measurement formatters, and sorting logic. A user in Tokyo seeing MM/dd/yyyy is a small bug. A user in Germany seeing a dollar amount where euros should be is a support ticket with a screenshot.
Use Locale.current and FormatStyle where possible, then test snapshots across a locale matrix. Capture the formatted output for dates, times, decimals, currency, and lists. Do not assert exact strings for every locale in every test; that becomes brittle. Assert the shape and use a small set of representative locales for exact output. The goal is to catch the formatter that ignored the locale entirely.
RTL Is Not a Toggle You Flip at the End
Right-to-left layouts are where optimistic localization goes to die. Arabic and Hebrew are not just mirrored text. Leading and trailing edges matter. Chevrons, back buttons, progress indicators, and custom icons may need mirroring. Fixed frames and hard-coded padding will look fine in English and collapse in RTL.
SwiftUI helps with leading and trailing alignment, but it does not read your mind. Test the real flow with an RTL pseudolocale or an actual Arabic build. Take screenshots of the navigation stack, forms, and empty states. Look for text that clips, controls that overlap, and images that point the wrong way. If your design system uses absolute left and right values, this is the audit that finds them.
Pseudolocalization Is Cheap Insurance
You do not need fluent speakers to find truncation and hard-coded strings. Enable pseudolocalization in the scheme and run the app. Double-length accents stretch labels, expose fixed-width buttons, and surface strings that never went through the catalog. It is not a substitute for real translation review, but it is a fast way to catch layout assumptions before a translator spends hours on a screen that cannot hold the text.
Run pseudolocalization through your UI tests, not just a manual tap-through. Screenshot diffs are useful here. A button that grows by two lines in pseudolocale is a button that will break in Finnish.
Put the Audit in CI So It Stays Fixed
A one-time audit is a nice afternoon. A test that runs on every pull request is a habit. Start with key coverage and placeholder checks, which are fast and deterministic. Add a small snapshot suite for formatting and layout in a representative locale set. Keep the full matrix for nightly builds if runtime is a concern.
Track translation coverage as a number, not a feeling. If a locale drops below your threshold, fail the build or at least post it where the team will see it. Localization debt compounds quietly, and the interest is paid in one-star reviews that say the app is 'broken in my language.'
The Confidence Comes From the Matrix
Forty locales is not a badge if none of them have been opened. The audit does not need to be a quarter-long project. Inventory the locales, test the keys, stress the plurals, snapshot the formatters, run an RTL pass, and put the cheap checks in CI. That is a day or two of work for most apps, and it replaces a lot of hopeful shipping with actual evidence.
Your users already know which language they speak. The audit just makes sure your app does too.