Info.plist Localization

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

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

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