Last Updated: February 25, 2016
·
1.666K
· nselvis

Switching iOS Localizations like a Pro

Switching Localizations in iOS is a hassle, doing the Settings -> General -> International -> Choose Language dance is anything but fun.

Luckily for us Xcode provides a great way to switch between Languages easily.

Alternative schemes

All you have to do is duplicate your Scheme and add these arguments.

For the language:

-AppleLanguages (fr)

For the region (time, currency and others):

-AppleLocale fr_FR

And as a BONUS, you can tell Xcode to WARN YOU if you don't have localized strings, this will appear in your Console and they will be UPPERCASE in the app:

-NSShowNonLocalizatedStrings YES

Arguments

Check the sample project in Github.

(fr) https://www.iso.org/obp/ui/#search
(frFR) http://www.loc.gov/standards/iso639-2/ISO-639-2utf-8.txt