Starting from iOS 11.0, the following code returns "de_US" instead of "en_US":
// => Returns "de_US"
NSString *regionCode = [[NSLocale currentLocale] objectForKey:NSLocaleIdentifier];
NSLog(@"Region code: %@", regionCode);
Below iOS 11, it returns "en_US".
My device has for language and region English / United States. Preferred languages (despite I do not use them in my code) are in order:
- English
- Deutsch
- French
Is it a known issue of iOS 11? Has the API changed?