Andrew
Andrew

Reputation: 402

iOS How to synchronize Main.storyboard strings and Localizable.strings

So, i have rally big issues.

First of all, i have 2 Localizable files, first it's Main.storyboard where i translate all labels, buttons.

And i have Localizable.strings where i translate error message, and some system message.

And i have something like this:

enter image description here

Translation working OK if i setup phone language.

But if i want to change manually language from the app, only translating file Localizable.strings.

Maybe it's possible to synchronize this two file in one?

Upvotes: 1

Views: 168

Answers (1)

Rushabh Shah
Rushabh Shah

Reputation: 398

You need to change "AppleLanguages".

let defaults = NSUserDefaults.standardUserDefaults()
defaults.setObject("rs", forKey: "AppleLanguages")

Upvotes: -2

Related Questions