Xcode – localize iOS project strings

Writing this down as I usually forget how to localize text in MyProject-Info.plist.

  • Left hand column, select Resources folder

  • Right click > New file… > Resource, Strings File

  • Save file as InfoPlist.strings

  • Open the file in the editor, enter strings to localize, like

    NSLocationWhenInUseUsageDescription = “Show your location on the map”;

  • Save file

  • In right hand column, click Localize button (makes the file localizable)

  • Now go to the project’s Localizations settings (under Project > Info)

  • Click Add language and select InfoPlist.strings

  • In the left hand column, there now are two entries under InfoPlist.strings. Edit as you please.

Works in Xcode 7 and 8.

Leave a Reply

Your email address will not be published. Required fields are marked *

This form collects your name, email address and content so that we can keep track of the comments placed on the website. Check our privacy policy for more info on where, how and why we store your data.