mirror of
https://github.com/darlinghq/darling-foundation.git
synced 2024-11-23 11:49:43 +00:00
Implement -[NSLocale languageCode]
This commit is contained in:
parent
bd4131c249
commit
8c91225112
@ -53,6 +53,7 @@ FOUNDATION_EXPORT NSString * const NSISO8601Calendar;
|
||||
@interface NSLocale (NSExtendedLocale)
|
||||
|
||||
- (NSString *)localeIdentifier;
|
||||
- (NSString *)languageCode;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -36,6 +36,10 @@ CF_PRIVATE
|
||||
return [[[NSAutoLocale alloc] _init] autorelease];
|
||||
}
|
||||
|
||||
- (NSString *) languageCode {
|
||||
return [self objectForKey: NSLocaleLanguageCode];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user