iOS localization over the air
App Store review makes a one-word translation fix take days. With over-the-air (OTA) localization, the app downloads
the latest approved texts at launch and falls back to the compiled Localizable.strings when it is offline.
How it works with Verba
- Your app keeps its normal
Localizable.strings/.stringsdict— they are the offline fallback. VerbaOta.start(project:token:)downloads the current texts for the device languages in the background and caches them.- Your lookup asks Verba first and the bundle second:
if let ota = VerbaOta.get(lang, key) { return ota }
return bundle.localizedString(forKey: key, value: value, table: table)
VerbaOta.refresh()when the app returns to the foreground picks up changes made in Verba since launch.
Keep the token out of git
Put the read token in a git-ignored Verba.xcconfig and expose it through Info.plist
(VerbaReadToken = $(VERBA_READ_TOKEN)). A read token can only download texts.
Keep code and Verba in sync
verba-push sends keys that exist only in your .lproj files to Verba (placeholders %@ are normalized), and
verba-fetch writes the translated files back — both from a guarded build phase, so they run only when you ask.
See the full iOS reference.