ESStringLocalizer Protocol Reference
Conforms to | NSObject |
Declared in | ESStringLocalizer.h |
Overview
A protocol that wraps the NSLocalizedString() macro to use it in libraries.
It may be used for mocking localization in unit tests and abstracting from the NSLocalizedString() macro. It may be useful to implement “localization in runtime” feature and other cool stuff.
Instance Methods
localizedStringForKey:
A method to return the localized string for a given key.
- (NSString *)localizedStringForKey:(NSString *)key_
Parameters
- key_
A localization key. In most cases it is a key in the “*.strings” file.
Return Value
A localized string that will be displayed to the user.
Declared In
ESStringLocalizer.h