1

In one of my application, I need to set the default language as French, if the language selected (device language) is non French. I am using below code snippet, but I am afraid if this is allowed by apple or not. Would this cause in rejection of the app over the app store. Please suggest. Here is the code:-

NSArray *langOrder = [NSArray arrayWithObjects:@"fr", nil];
[[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];​
Sabby
  • 2,586
  • 2
  • 27
  • 41

1 Answers1

1

That's a completely accepted way of doing it, however there are a few others as well. Look here for more potential solutions: How to force NSLocalizedString to use a specific language.

Community
  • 1
  • 1
Rick
  • 3,240
  • 2
  • 29
  • 53