简体   繁体   中英

country-language code (ISO 3166) in actionscript

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];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM