missing en_MZ locale identifier in list get by availableLocaleIdentifiers

I am using the following method to get all locale identifier, but en_MZ is missing from the identifier list get by the method.

[NSLocale availableLocaleIdentifiers]


I set language Portuguese and set region Mozambique.
In the current locale, I am getting this identifier. but not in above availableLocaleIdentifiers.


[NSLocale currentLocale].localeIdentifier



Why en_MZ missing in availableLocaleIdentifiers?

Replies

I set language Portuguese and set region Mozambique.

In the current locale, I am getting [

en_MZ
]

I’m confused. With that combo you’d expect to get back

pt_MZ
, no?

Why

en_MZ
missing in
availableLocaleIdentifiers
?

I don’t have a good explanation for this, but it doesn’t really surprise me. Off in the outer edges of the localisation system it’s not unusual to see oddities like this one. If you’d like someone to research this in depth, me recommendation is that you open a DTS tech support incident about it.

However, I do have a question for you: Why does this matter? Most folks never need to call

availableLocaleIdentifiers
, so I’m curious why you’re calling it at all.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"