当前所在地信息
NSString *identifier = [[NSLocalecurrentLocale] localeIdentifier];
NSString *displayName = [[NSLocale currentLocale]displayNameForKey:NSLocaleIdentifiervalue:identifier];
NSLog(@"%@", displayName);
当前所在地的使用语言
NSLocale *currentLocale = [NSLocale currentLocale];
NSLog(@"Language Code is %@", [currentLocale objectForKey:NSLocaleLanguageCode]);
系统语言
NSArray *arLanguages = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"];
NSString *strLang = [arLanguages objectAtIndex:0];
NSLog(@"LANG:%@",strLang);
语言列表
(
en,
"zh-Hans",
fr,
de,
ja,
nl,
it,
es,
pt,
"pt-PT",
da,
fi,
nb,
sv,
ko,
"zh-Hant",
ru,
pl,
tr,
uk,
ar,
hr,
cs,
el,
he,
ro,
sk,
th,
id,
ms,
"en-GB",
ca,
hu,
vi
)
网友评论