Clicky

iOS Dev Nugget 103 Testing Localization Using Launch Arguments

.

Need to run a code review on your codebase? Hire me

App localization is important, but tedious to test. One quick way is test localizations in the simulator, using launch arguments. In Xcode, click on Edit Scheme > Run > Arguments and add the following to Arguments Passed On Launch:

-AppleLanguages (en)

Replace en with the localization (zh, es, etc) you want to test e.g.

Simplified Chinese:
    -AppleLanguages (zh)

German:
    -AppleLanguages (de)

French:
    -AppleLanguages (fr)


Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues