Translating Purrchiver with agents, and no native speaker
Purrchiver has had 50 first-time downloads. 41 of them came from outside the United States, from 22 countries. The App Store listing and the app were both English only.
So Purrchiver is getting German, French and Portuguese (Brazil). Agents wrote the translations, other agents reviewed them, and no native speaker has checked any of it. That’s a choice, and I’ll say where it could go wrong.
None of this is on the App Store yet. The translations are done, and every string is still marked as an agent’s draft. They ship with the next release, once the review pass described below has marked them done.
Why these three
After the United States, the biggest countries were Germany (5), France (4), India (4) and Brazil (3). People search for this kind of app in their own language too: “winrar für mac” shows up in this site’s search data.
German and French were clear. India is a country with many languages, and I can’t tell from the numbers which one its four downloads would want, so I left it out. Brazil tied with Italy and China mainland at three each, and I don’t have the data to say Portuguese was the right pick over Italian or Chinese. It’s a guess.
I picked three languages, not ten. Every language is upkeep: each new or changed string needs translating before every release. Three is a number I can keep up with.
The App Store listing went first. A name, subtitle, keywords and description are cheap to translate, and they’re what people search.
Making the app translation-ready
Translating means filling in string catalogs. Getting to the point where that’s all it means was most of the work: about 1,300 keys across the app, the Quick Look extension, the App Shortcuts phrases, the Info.plist text, the Services menu and each Swift package that shows text.
The bundle: .module trap. In a Swift package, a localized string needs to
say which bundle it comes from:
Text("Extract All", bundle: .module)
String(localized: "Choose a folder.", bundle: .module)Without it, the lookup goes to the app’s catalog, misses, and the string stays
English in every language. There’s no error and no warning. The change that
made the app ready added bundle: .module on over 500 lines. A test now scans
the packages for the common calls (Text("…"), String(localized:) and a few
more) and fails on any without a bundle. It doesn’t catch a Button or Label
written the same way, so those still rely on review.
Text a translator could never reach. Some of the app’s English was built in code:
- Plurals picked English words with a ternary, like
n == 1 ? "file" : "files". Each is now one sentence with plural forms in the catalog. The English didn’t change. - Keys built at runtime,
Text(LocalizedStringKey(someVariable)), are never extracted, so no translator would ever see them. They’re gone. - Shortcuts messages, the Unlock screen, the password meter, format descriptions and many error messages were plain English strings.
The command line doesn’t sync catalogs. When you build in Xcode, its editor
writes newly found strings into the catalogs. xcodebuild extracts them and
stops. A small script builds, then runs xcstringstool sync on each catalog.
One catalog had to be left out: it holds hand-written values for named keys,
and a sync overwrites them.
Testing for strings that skipped localization
macOS has pseudolanguages for exactly this. Launch an app with
-NSSurroundLocalizedStrings YES, and every string that went through a catalog
is drawn wrapped in [# … #]. Visible text without the brackets never went
through localization.
So a UI test launches Purrchiver that way, walks the accessibility tree of the welcome window, the menu bar, the Create sheet, the archive window and every Settings tab, and fails on any text that has letters and no brackets. File names, paths, sizes, dates and format names are allowed through, because they’re data, not text to translate. For the menus, it checks only the top-level titles, not every item.
Two more pseudolanguages check layout. Double-length text stands in for German, which runs long, and the Create sheet, the toolbar and the recovery summary have to still fit. Right-to-left checks that the Create sheet’s buttons and the archive table’s columns swap sides, before any right-to-left language is on the list.
Launch arguments have to be in the right order:
app.launchArguments += ["-NSSurroundLocalizedStrings", "YES",
"-ApplePersistenceIgnoreState", "YES",
"-purrchiver-skip-onboarding-for-uitests"]The -Key Value pairs go first. macOS reads the arguments in pairs, and a pair
placed after a one-word flag gets split, leaving its value over. Purrchiver then
tried to open “YES” as a file.
The main test plans now pin the language to English, since their assertions check English text and would fail on a Mac set to German.
Translating with agents
Xcode 27 has its own agent translation, and its instructions are on disk inside
Xcode. I read them in Xcode 27.2. A translator agent gets a list of strings and
a language from a coordinator. For each string it can look up the developer’s
comments, similar strings and their translations, and the places in the code
where the string is used. It’s told reading that code is required: “Save” on a
button is “Speichern”, but a saved game is “Spielstand”. String catalogs have a
machine_translated state for output like this, separate from translated.
Xcode also ships style guides for dozens of languages. German’s has rules I wouldn’t have known: a UI string ending in a period uses the imperative, one without uses the infinitive, and there’s a non-breaking space before an ellipsis and between a number and its unit.
I borrowed that process and ran it from the command line with Claude Code.
Agents drafted each language from a glossary, Apple’s style guide for that
language and the voice of the App Store listing, and marked every string
machine_translated. More agents then reviewed the drafts against the English.
The glossary settles what a style guide can’t. German uses “du” and French uses “vous”. In Portuguese, “archive” is always “arquivo compactado”, because “arquivo” alone means “file”.
Translating found things the readiness work missed:
- Sentences built around an English word. Compare’s password errors, the password-strength label and some VoiceOver labels slotted an English word into a sentence. Each is now one whole sentence per case.
- One key, two meanings. “None” was a format, an encryption setting and a preset. “Done” was a button and a job status. In a language with gendered words, one translation can’t fit all of them, so each use got its own key.
- macOS can’t inflect Portuguese. Apple’s automatic grammar agreement works in German and French. For Portuguese it does nothing, and the app said “3 item extraído”. Portuguese now spells out each plural form, and a test keeps the inflection markup out of it.
- Long labels. The Create sheet’s buttons keep their whole labels in every language, and the file name preview beside them truncates instead (“Criar Arquivo Compac…” in Portuguese). Layout tests now run each language on the main windows and save screenshots.
The release check
Alongside the translations, I added a check to the release steps: it fails
while any language has a string not marked translated. An agent’s draft,
marked machine_translated, counts as not done. Right now that’s every string,
in all three languages.
I built that check expecting a native speaker to mark strings translated. I’ve decided not to wait for one. The final agent review will mark what it has checked, and the check will go on refusing any string still marked as a draft. The check only reads that mark. It can’t tell how good a review was.
That means a German speaker may find awkward phrasing, or a wrong word in an error message. Plain error messages are a big part of what Purrchiver is for, so that’s the real cost. If you find one, I’d like to hear about it.
What I got wrong
“Translation-ready” wasn’t. The pseudolanguage test passed, and translating still found sentences glued from English pieces, keys with two meanings, open panels with untranslated titles and “item(s)”. The test can only tell whether text went through a catalog. It can’t tell whether that text makes a sentence a translator can translate.
I skipped the cheap test. The plan said translating only the App Store listing was the cheap first test of demand. I wrote the listings, and the app was translated the same afternoon, before the listings had gone anywhere. I drafted the listings saying the app itself was in English, and had to take that line out the next day.
I ignored my own plan. It waited for one non-English country to reach 10% of product-page views over 90 days, and required a native review. Germany has five downloads. I went ahead on far less data than I said I’d need, and I’ve dropped the review. I think both calls are right for an app this small, but they weren’t the plan.
What would it take for you to trust a translation no native speaker has read?