3 ms·
iOS has separate region and language settings. Quick look at Apple docs suggests that this is the former.
by Gaelan 7y ago
iOS has separate region and language settings. Quick look at Apple docs suggests that this is the former.
- gowld 7y agoNo, it's the latter. In NSLocale, "region" is a subtype of language, as in a regional dialect, not an independent dimension. https://developer.apple.com/documentation/foundation/nslocale/1643060-countrycode?language=objc https://developer.apple.com/documentation/foundation/nslocal... https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html#//apple_ref/doc/uid/10000171i-CH15-SW9 https://developer.apple.com/library/archive/documentation/Ma...
- dchest 7y agoNope, [[NSLocale currentLocale] countryCode] returns Region country code from settings. The same code is also used for language region, so you can end up with something like zh_US.