mirror of
https://github.com/darlinghq/darling-corefoundation.git
synced 2024-11-23 03:49:40 +00:00
Add localizedStringForLocaleIdentifier:
Xcode needs this and it's a very simple method to implement.
This commit is contained in:
parent
32af1dd140
commit
736d629be1
@ -319,4 +319,9 @@ NSString *const NSLocaleVariantCodeKey = @"kCFLocaleVariantCodeKey";
|
||||
return CFEqual((CFTypeRef)self, (CFTypeRef)other);
|
||||
}
|
||||
|
||||
- (NSString *)localizedStringForLocaleIdentifier:(NSString *)identifier
|
||||
{
|
||||
return [self displayNameForKey:NSLocaleIdentifier value:identifier];
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user