5 ms·
No, 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/docum
by gowld 7y ago
No, 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.