Created
August 23, 2017 14:18
-
-
Save vkostechko/867eacba622d4a040a8d99b6a8a874a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSString *)localizedStrinByKey:(NSString *)key forLanguage:(NSString *)languageCode | |
{ | |
NSLog(@"language: %@", languageCode); | |
NSString *path = [[ NSBundle mainBundle ] pathForResource:languageCode ofType:@"lproj"]; | |
NSBundle *bundle = [NSBundle bundleWithPath:path]; | |
return [bundle localizedStringForKey:key value:NSLocalizedString(key, nil) table:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment