Add localizedStringForLocaleIdentifier:

Xcode needs this and it's a very simple method to implement.
This commit is contained in:
Ariel Abreu 2023-10-07 11:01:38 -04:00
parent 32af1dd140
commit 736d629be1
No known key found for this signature in database
GPG Key ID: 5B88AAAF4280706F

View File

@ -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