How to get the locale/region of the device?
I want to retrieve the locale/region being used on the user's mobile device (doing this on iOS at the moment) and seem to be having difficulty figuring this out.
I need to be able to distinguish between en_US, en_UK, en_CA etc.
Capabilities.language & Capabilities.languages just seem to return the language "en" and not the locale/region being used for the device.
I've also tried using
var defaultLocale:LocaleID = new LocaleID(LocalID.DEFAULT);
trace(defaultlLocale.getLanguage + "_" + defaultLocale.getRegion());
But this just results in an output of "i-default_" (invalid language setting and empty region setting).
Any ideas on what API calls I need to be using, or what I'm doing wrong?
Thanks in advance
