Domanda

Is there a way to get the country-language code in ISO 3166 (for example: US_en) in actionscript with zinc like I would do in objectiveC:

NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0];
NSString *locale = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];

NSString *updateLocaleLanguage =[NSString stringWithFormat:@"%@_%@",locale,language];
È stato utile?
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top