1

In iOS, is it possible to override the locale currently set on the phone and make it use a strings for a different locale in my app?

Boon
  • 40,656
  • 60
  • 209
  • 315

1 Answers1

5

In short: Yes.

The NSLocalizedString is a macro, which you can replace with your own macro and do the language loading yourself. This might require setting most of the strings in code though and you will not be able to use them in Storyboards.

However, changing the locale manually in NSUserDefaults works if you want to change the locale.

The answers below explain more on this topic:

Community
  • 1
  • 1
Legoless
  • 10,942
  • 7
  • 48
  • 68
  • I appreciate you answering the question with multiple posts rather than downvoting it or marking it as dupe. Very helpful! – Boon Mar 31 '14 at 20:08