Reputation: 2865
I am following the instructions on this blog post to localize my swift app. http://evgenii.com/blog/localizing-text-in-swift/
In my Swift file I have
let my_interests = "Reading: Children's books, biographies, history and science fiction.\n\nProgramming Languages: Learning new programming languages."
....
textView.text = NSLocalizedString("my_interests", comment: "Just a Test")
When I go to the Editor and select Export For Localization
I get an error.
Upvotes: 0
Views: 505
Reputation: 6849
You probably don't have a Localizable.strings in your project.
In your XCode project go to File -> New -> File -> iOS -> Resource -> Strings.file -> Next
Name the file Localizable.strings
Upvotes: 1