Localization in Swift like a Pro

How to write safer localization code and save time by getting less distracted from your actual code writing task in Xcode.

The Status Quo in Xcode

Missing Feature #1: Keeping Localizations in Sync

Missing Feature #2: Resource Access

title = NSLocalizedString("onboarding.page-one.title", comment: "")
title = getString(R.string.onboarding_page_one_title)

Enhancing Xcode using Build Scripts

brew install bartycrouch swiftgen


Eliminate switching to Strings files entirely

Finding common Strings file issues

Configuring BartyCrouch


Combine BartyCrouch & SwiftGen

Pro Localization Workflow


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store