Search code examples
iphonelocalizationnslocalizedstring

Is it possible to force localization to another language?


Can I pass an argument to NSLocalizedString to override the localized string and tell it what language to use so that the user can choose a language from a Settings menu?

How so?


Solution

  • We’ve done something similar, but the answer was to not use NSLocalizedString. Instead, since you know what language the user has selected, you just load the text for that language. You can store it in property lists, using Core Data or SQLite, etc.