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: "")

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

Localize iOS project with Strings file
Translate »