Matt Douhan
Matt Douhan

Reputation: 2113

Why is my main storyboard not picked up for localisation when I add a new language?

I am starting to localise my app to other languages but when I add a new language in Xcode 9, only my launch screen storyboard is picked up for localisation not my main storyboard, I had expected both to be picked up for localisation, how do I get my main storyboard included for localisation?

Upvotes: 1

Views: 484

Answers (2)

Predrag Samardzic
Predrag Samardzic

Reputation: 3019

Select your storyboard -> In file inspector there is a button "Localize", i believe that is what you need.

Upvotes: 2

Tung Fam
Tung Fam

Reputation: 8147

I wouldn't recommend localizing your app using Storyboard.

Why: In future, you won't be able to send a storyboard to the interpreter to translate it. It's slower and heavier. It takes more time.

Instead, there is another solution. Use NSLocalizedString to do localization. Then you will generate the file with translations and have 1 file for 1 language of the app. It's a common practice among developers and I always have been doing it that way.

Check out this tutorial it seems to be good from what I've looked through: link.

Upvotes: 1

Related Questions