I want to change the language and the region format within in the application. I can do something this to change the language.
int main(int argc, char * argv[])
{
@autoreleasepool {
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"zh_CN", nil] forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Then quit the app using exit(0); once user changed the language.
Change Language in the app programmatically
But how can I change the region format to match the selected language? Is this doable?