[ターゲット-c]言語コードのインポート


+ (NSString*) getLanguageCode
{
    NSString *language = [[NSLocale preferredLanguages] firstObject];
    NSDictionary *languageDic = [NSLocale componentsFromLocaleIdentifier:language];
    NSString *preferredLanguageCode = [languageDic objectForKey:@"kCFLocaleLanguageCodeKey"];

    return preferredLanguageCode;
}
//output : ko
ソース
https://stackoverflow.com/questions/3910244/getting-current-device-language-in-ios