Info.plist Localization

Jesus Guerra
Apr 28, 2018 · 2 min read
Image for post
Image for post
Source: Internet

If you already have localization strings in your project but you are in the need to add localize to some keys in the Info.plist like NSCameraUsageDescription or NSLocationAlwaysUsageDescription or NSLocationUsageDescription . Well, just follow the next steps and you will be all set.

1. Create InfoPlist.strings

Go to File->New->File or press Command(⌘)+N and create an Strings File and name it InfoPlist. Once you are done, should have something like this:

2. Enable Localization for InfoPlist.strings

With InfoPlist.strings selected, press Localize... button in the file inspector panel

Image for post
Image for post

After press Localize... your should see something like this:

Image for post
Image for post

And with that you are all set. Just add the key(which needs to be the same as is in the Info.plist ) and its corresponding string and that’s pretty much it.

Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.

— Linus Torvalds

Thanks for reading and hope you find some of my thought helpful, any feedback or comment is welcome. And if you want to waste some of your time, follow me on twitter @guerrix

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store