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.
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
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
Written by Elvis Nuñez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#