Image for post
Image for post

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.

Cihat Gündüz
Feb 11, 2019 · 8 min read

The Status Quo in Xcode

Missing Feature #1: Keeping Localizations in Sync

Missing Feature #2: Resource Access

title = NSLocalizedString("", 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

Image for post
Image for post

Configuring BartyCrouch


Combine BartyCrouch & SwiftGen

Pro Localization Workflow

Image for post
Image for post


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

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