Skip to content

Instantly share code, notes, and snippets.

@MacKentoch
Last active July 15, 2017 07:45
Show Gist options
  • Select an option

  • Save MacKentoch/b3d7781b022593102976ada1d3ded02f to your computer and use it in GitHub Desktop.

Select an option

Save MacKentoch/b3d7781b022593102976ada1d3ded02f to your computer and use it in GitHub Desktop.

How to localize an app’s name with InfoPlist.strings

  • In Xcode go to File, New, File..
  • Select iOS (or the platform you are working with), Resource, Strings File, Next.
  • Name the file InfoPlist.strings (case sensitive).
  • If you only plan on having one App name for your project then I recommend placing the file in the same directory as your Localizable.strings file. However, if you have multiple targets and some of them use different app names then you will want to create a separate directory for the InfoPlist.strings file. You will then need to create a separate InfoPlist.strings file for each app name and associate it with the correct target.
  • Select the newly created InfoPlist.strings file and add the following key, value pairs:
"CFBundleDisplayName" = "Your App Name";    // App name as displayed below app icon
"CFBundleName" = "Your App Name";           // Short app name, should be 16 characters or less
  • Use the utility pane on the right, select the Localize… button. After selecting Base in the modal. You can now add additional Localizations to your app name by selecting their languages.
  • To add a new language, select your Project from the Project Navigator, go to the Info tab, and select the + sign in the Localizations section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment