I have a local location of "en" and "en-AU" (Australian English) for a specific file.
While the current locale is "en_AU", [[NSBundle mainBundle] localizations] creates the set of localizations that I expect:
( "en-AU", "en" )
However, [[NSBundle mainBundle] preferredLocalizations] (the one that really matters) produces only:
( "en" )
Why is the most specific supported localization completely excluded from the preferred list and instead returns a more general localization?
Is there a way to get an NSBundle to prioritize the most accurate localization available above the less specific options?
source share