ARTICLES

Localize iOS project with Strings file

File..New File

From the appropriate platform, choose Resource, Strings File

Name it “Localizable.strings”.

Add your key value pairs as such:

"HELLO_WORLD" = "Hello World!";

In code add your localized string with:

Swift

NSLocalizedString("HELLO_WORLD", comment: "")</pre>

Objective-C

NSLocalizedString(@"HELLO_WORLD", nil);

To add additional languages go to your project..Info..Localizations.

Press the + button to add new languages.

 

Did you find this post helpful? Support independent development and improve your sleep by downloading White Noise and Deep Sleep Sounds free from the App Store.

 

Tested with:

Xcode Version 7.2.1



Our Products

Kitemetrics
Keyword level attribution for Apple Search Ads. Optimize your bids and increase your revenue. Sign up for free at kitemetrics.com.

White Noise and Deep Sleep Sounds
Calming and relaxing sounds that will help you sleep like a baby tonight.
Download for free from the App Store.
Get it on Google Play.