ESDictionaryLocalizer Class Reference
| Inherits from | NSObject |
| Conforms to | ESStringLocalizer |
| Declared in | ESDictionaryLocalizer.h ESDictionaryLocalizer.m |
Overview
This class implements the ESStringLocalizer protocol by searching the value in the given dictionary.
Instance Methods
init
Initializer not supported. Throws an exception when invoked.
- (id)initReturn Value
nil. It should not return unless assertions are disabled.
Declared In
ESDictionaryLocalizer.hinitWithDictionary:
A designated initializer.
- (id)initWithDictionary:(NSDictionary *)rawLocalization_Parameters
- rawLocalization_
A dictionary for mock localized strings lookup.
Return Value
The localizer object.
Declared In
ESDictionaryLocalizer.hlocalizedStringForKey:
Finds the localized value for the given key in the dictionary specified in [ESDictionaryLocalizer initWithDictionary:]
- (NSString *)localizedStringForKey:(NSString *)key_Parameters
- key_
A localization key string.
Return Value
rawLocalization[key]
Declared In
ESDictionaryLocalizer.h