I have a multi-language ios app, it can switch to correct language depends on ios system location. I want to know, for example, the system language is english, how do I assign app language to German or other languages?
Asked
Active
Viewed 256 times
0
-
The same way that iOS does it (taking it from the appropriate file), except you need to do it manually since the system will not do it for you. – borrrden Feb 22 '13 at 10:23
-
1Check my answer, there is an example http://stackoverflow.com/a/14742213/1702413 – TonyMkenu Feb 23 '13 at 19:29
2 Answers
1
Try adding this in main.m in the main() function, before UIApplicationMain() is called, the important thing is that these statements are executed before the app is launched
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"es", nil] forKey:@"AppleLanguages"]; //switching to spanish locale
[[NSUserDefaults standardUserDefaults] synchronize];

tkanzakic
- 5,499
- 16
- 34
- 41
0
You can specify your default language in your Info.plist
file. The setting is called Localization native development region
. This language will be used as a default one.

Adam
- 26,549
- 8
- 62
- 79